Ejemplo n.º 1
0
 protected virtual async Task <ActionResult> addEnreg(List <Enregistrement> data)
 {
     //try
     {
         return(new JsonnResult {
             Data = new { success = true, data = await enregRepository.AddEnreg(data, EnregTypeID, UserName) }
         });
     }
     //catch (Exception ex)
     //{
     //  return new JsonnResult { Data = new { success = false, Message = ex.Message, Message1 = ex.InnerException != null ? ex.InnerException.Message : "" } };
     //}
 }