Beispiel #1
0
 public async Task <Evento> AddEventos(Evento model)
 {
     try
     {
         _geralPersist.add <Evento>(model);
         if (await _geralPersist.SaveChangesAsync())
         {
             return(await _eventoPersist.GetEventoByIdAsync(model.Id, false));
         }
         return(null);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }