예제 #1
0
 public JsonResult Get()
 {
     try
     {
         IList <Devices> devices = devicesRepository.RetrieveAll().Where(i => i.User.Id == CurrentUser(hunter).Id).OrderBy(p => p.Name).ToList();
         return(JsonResponse(devices));
     }
     catch (Exception ex)
     {
         return(InternalException(ex));
     }
 }