public async Task <int> AddLevel3(Level3VM modelVM)
 {
     try
     {
         return(await StdRepo.ExcuteStoredProcedureToSave <Level3VM>(GlobalSPNames.AddLevel3SPName, modelVM));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
示例#2
0
 public async Task <HttpResponseMessage> AddLevel3(Level3VM modelVM)
 {
     try
     {
         string username      = RequestContext.Principal.Identity.Name;
         string clientAddress = HttpContext.Current.Request.UserHostAddress;
         return(Request.CreateResponse(HttpStatusCode.OK, await corepo.AddLevel3(modelVM)));
     }
     catch (Exception ex)
     {
         LogHelper.WriteLog(HttpContext.Current.Request, ex, RequestContext.Principal.Identity.Name);
         return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex));
     }
 }