using System; using System.Collections.Generic; using System.Threading.Tasks; using DI_Electrical.Models; namespace DI_Electrical.Services { public class DataItemService : HttpService { public DataItemService( ) : base() { } public async Task> GetDetails(string itemCode) { var res = await this.GetAsync>($"DataItemApi/GetDetails?projectId={GlobalObject.curProject.ProjectId}&itemCode={itemCode}"); //OnRefresh(); if (res.code == 200) { return res.data; } else { return null;//ERROR INFO } } } }