public async Task <ActionResult <TDto> > AddAsync([FromBody] TDto dto) { try { return(await Application.AddAsync(dto)); } catch (Exception e) { return(BadRequest(e.Message)); } }
public virtual async Task <T> AddAsync(CreateT entity) => await App.AddAsync(entity);