public virtual async Task <IActionResult> GetById(int id) { TEntity entity = await _baseEntityService.GetById(id); if (entity is null) { return(NotFound()); } return(Ok(_baseEntityService.Map(entity))); }
public virtual async Task <IActionResult> GetById(int id) { TEntity entity = await _baseEntityService.GetById(id); if (entity is null) { return(NotFound()); } return(Ok(_baseEntityService.Map(entity))); }