예제 #1
0
 public async Task <JsonResult> AddLead([Required] AddLeadViewModel model)
 {
     if (!ModelState.IsValid)
     {
         return(JsonModelStateErrors());
     }
     return(await JsonAsync(_leadService.AddLeadAsync(model)));
 }