public async Task <ActionResult <Locations> > Delete(int id) { var entity = await _service.Delete(id); if (entity == null) { return(NotFound()); } return(Ok(entity)); }