public IEnumerable <FileInstance> Get(int take = 10, int skip = 0, string path = "", string order = "") { try { return(repository.Find(take, skip, path, order)); } catch (UnauthorizedAccessException) { throw new HttpResponseException(HttpStatusCode.Unauthorized); } catch (Exception) { throw new HttpResponseException(HttpStatusCode.InternalServerError); } }
public IEnumerable <FileInstance> Get(int take = 10, int skip = 0, string path = "", string order = "") { return(repository.Find(take, skip, path, order)); }