public List <SelfHostConfig> ListSelfHost(List <string> lstLineID) { var response = FunctionHelper.Post_Json(BaseURL + "listselfhost", lstLineID); var result = JsonConvert.DeserializeObject <List <SelfHostConfig> >(response.Content.ReadAsStringAsync().Result); return(result); }
public SelectListModelCardUploadReturn GetListCustomerWantToUse(CardUploadAPI listUpload) { var response = FunctionHelper.Post_Json(BaseURL + "getlistcustomerwanttouse", listUpload); var result = JsonConvert.DeserializeObject <SelectListModelCardUploadReturn>(response.Content.ReadAsStringAsync().Result); return(result); }
public ReportResult SendUpload(Employee obj, string SelfHostAddress) { var response = FunctionHelper.Post_Json($"http://{SelfHostAddress}:8081/api/register/upload", obj); var result = JsonConvert.DeserializeObject <dynamic>(response.Content.ReadAsStringAsync().Result); return(new ReportResult() { ControllerID = result[0].ControllerID, Message = result[0].Message, Success = result[0].Success }); }
public User CheckLogin(User user) { var response = FunctionHelper.Post_Json(BaseURL + "checklogin", user); if (response.StatusCode == System.Net.HttpStatusCode.OK) { var result = JsonConvert.DeserializeObject <User>(response.Content.ReadAsStringAsync().Result); return(result); } else { return(null); } }