public async Task <List <Documents> > GetByReff(int id, int doctype, int limit) { List <Documents> ToReturn = new List <Documents>(); try { ToReturn = await _DocsRepo.GetAllByReffAsync(id, doctype, limit); } catch (Exception ex) { var logger = _loggerFactory.CreateLogger("internal_error_log"); logger.LogInformation("Problem happened in selecting the data for GetAsync with message" + ex.Message); } return(ToReturn); }