public static REmployeeCollections FiveDayReminder(REmployeePara objPra) { REmployeeCollections items = new REmployeeCollections(); using (var client = WebApiHelper.myclient(HouseEndpoint, SystemConst.APIJosonReturnValue)) { HttpResponseMessage response = client.PostAsJsonAsync(string.Format("Report?Event=FiveD&Para="), objPra).GetAwaiter().GetResult(); if (response.IsSuccessStatusCode) { items = response.Content.ReadAsAsync <REmployeeCollections>().GetAwaiter().GetResult(); } } return(items); }
public REmployeeCollections Post(REmployeePara objPara, string Event, string Para) { return(REmployeeManager.GetReminderList(objPara)); }