public PaginatedResult <T> FecthAll(PaginatedInfo pageInfo) { try { return(Repository.FetchAll(pageInfo)); } catch (Exception) { throw; } }
public PaginatedResult <T> FetchByCustomCriteria(Expression <Func <T, bool> > criterion, PaginatedInfo pageInfo) { try { return(Repository.FetchByCustomCriteria(criterion, pageInfo)); } catch (Exception) { throw; } }