예제 #1
0
        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);
        }
예제 #2
0
 public REmployeeCollections Post(REmployeePara objPara, string Event, string Para)
 {
     return(REmployeeManager.GetReminderList(objPara));
 }