Beispiel #1
0
 public ActionResult AddEditLeadType(int id, string leadType)
 {
     if (leadService.GetLeadTypes().Any(x => x.Name.ToLower() == leadType.ToLower() && x.Id != id))
     {
         return(Json("Duplicate lead type not allowed", JsonRequestBehavior.AllowGet));
     }
     leadService.AddEditLeadTypes(id, leadType);
     return(Json("", JsonRequestBehavior.AllowGet));
 }