public JsonResult EditProfile(long TID) { ResultInfo <EditProfileTeacher> ResultInfo = new ResultInfo <EditProfileTeacher>() { Status = false, Description = "Failed|Login" }; ClassTeacher PageObj = new ClassTeacher(); ResultInfo.Info = PageObj.EditProfile(TID); if (ResultInfo.Info != null) { ResultInfo.Description = "Success| Get Details "; ResultInfo.Status = true; } return(Json(ResultInfo, JsonRequestBehavior.AllowGet)); }