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