public bool Search(string search) { ImpHome homeImplementation = new ImpHome(); //string aux = Request.QueryString["search"]; string aux = search; PatientViewModel patient = homeImplementation.AccessDatabase(aux); if (patient != null) { Session["patientId"] = patient.User_id; return(true); } return(false); //return Json(patient, JsonRequestBehavior.AllowGet); }
public JsonResult SearchAllusers() { List <UsersSearchVM> listUsers = new ImpHome().SearchUsers(context); return(Json(listUsers, JsonRequestBehavior.AllowGet)); }