Exemplo n.º 1
0
 public TrashVM Get(int type = 1, int take = 10, int skip = 0, string filter = "1==1", string order = "DateCreated descending")
 {
     try
     {
         return(repository.GetTrash((TrashType)type, take, skip, filter, order));
     }
     catch (UnauthorizedAccessException)
     {
         throw new HttpResponseException(HttpStatusCode.Unauthorized);
     }
     catch (Exception)
     {
         throw new HttpResponseException(HttpStatusCode.InternalServerError);
     }
 }
Exemplo n.º 2
0
 public TrashVM Get(int type = 1, int take = 10, int skip = 0, string filter = "1==1", string order = "DateCreated descending")
 {
     return(repository.GetTrash((TrashType)type, take, skip, filter, order));
 }