public object SaveEnterPrise(bool isEdit, string evnt, [FromBody] Reginfo aReginfo)
 {
     try
     {
         return(enterpriseService.Save(aReginfo, isEdit, evnt));
     }
     catch (Exception ex)
     {
         return(errorLogService.InsertToErrorLog(ex, MethodBase.GetCurrentMethod().Name, Request.Headers["UserInfo"].ToString()));
     }
 }
Пример #2
0
 public ActionResult <List <Enterprise> > Save([FromBody] Enterprise enterprise)
 {
     try
     {
         enterprise.Id = Guid.NewGuid();
         _service.Save(enterprise);
         return(Ok());
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }