コード例 #1
0
 public string Index(List <HTMLGenerationEntity> hTMLGenerationEntity)
 {
     if (ModelState.IsValid)
     {
         var attributes = Utils.ParseRequest(Request.Form);
         try
         {
             var res = _consumerRepository.ValidateConsumer(1, attributes);
             ViewData.Add("validatecustomer", (res.Count > 0) ? true : false);
         }
         catch (Exception ex)
         {
             _log.Log(ex, LoggingEventType.error);
             return("Error");
         }
     }
     return("Success");
 }