public async Task <IActionResult> GetAll() { var cities = await _crudPattern.GetAll(); if (cities.Count == 0) { return(NoContent()); } return(Ok(cities)); }
public async Task <IActionResult> GetAll() { var workLocations = await _crudPattern.GetAll(); if (workLocations.Count == 0) { return(NoContent()); } var result = _mapper.Map <List <WorkLocationReadDto> >(workLocations); return(Ok(result)); }
public async Task <IActionResult> GetAll() { var users = await _crudPattern.GetAll(); if (users.Count == 0) { return(NoContent()); } var result = _mapper.Map <List <UserReadDto> >(users); return(Ok(result)); }