public JsonResult GetContactByCusId(string ID) { CONTACT con = new CONTACT(); List <CONTACT> lst = con.SelectCusContact(ID); return(Json(lst)); }
public JsonResult GetContact(string CUS_ID) { CUSTOMER cus = new CUSTOMER(); CONTACT vc = new CONTACT(); var lst = vc.SelectCusContact(CUS_ID); cus = cus.Select(CUS_ID).FirstOrDefault(); var result = new { CONTACTS = lst, CUSTOMER = cus }; return(Json(result)); }