public JsonResult GetSalutation(string prefix) { AIA.Life.Models.Opportunity.Suspect objSuspect = new Suspect(); objSuspect.Prefix = prefix; objSuspect = objProspectBusiness.LoadSalutation(objSuspect); List <string> LstSalutation = objSuspect.LstSalutation.Where(a => a.Text.ToUpper().StartsWith(prefix.ToUpper())).Select(a => a.Text).Distinct().ToList(); return(Json(LstSalutation, JsonRequestBehavior.AllowGet)); }
public AIA.Life.Models.Opportunity.Suspect LoadSalutation(AIA.Life.Models.Opportunity.Suspect objSuspect) { AIA.Life.Business.Prospect.ProspectBusiness objProspectBusiness = new AIA.Life.Business.Prospect.ProspectBusiness(); objSuspect = objProspectBusiness.LoadSalutation(objSuspect); return(objSuspect); }