public ActionResult Save(String ID) { var status = false; var staffModel = new Staff(); if (!string.IsNullOrEmpty(ID)) { staffModel = _staffRepository.GetByID(Guid.Parse(ID)); if (staffModel != null) { status = true; } } return(Json(new { status = status, StaffJsonData = staffModel }, JsonRequestBehavior.AllowGet)); }