Esempio n. 1
0
 public List <AttendanceModel> GetAttendanceList(int ClientId, string IP)
 {
     try
     {
         string url    = "api/DailyAttendance/" + ClientId;
         string result = SC.GetcallerIPChange(url, IP);
         if (result.Contains("[]"))
         {
             return(null);
         }
         else
         {
             List <AttendanceModel> Response = JsonConvert.DeserializeObject <List <AttendanceModel> >(result);
             return(Response);
         }
     }
     catch (Exception) {}
     return(null);
 }