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