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)); } }