public JsonResult SchoolStudentUpdateProfile(SchoolStudentEdit Info) { ResultInfo <string> ResultInfo = new ResultInfo <string>() { Status = false, Description = "Failed|Login" }; try { if (Info != null) { SchoolStudent Obj = new SchoolStudent(); ResultInfo.Info = Obj.UpdateSchoolStudentProfile(Info); if (ResultInfo.Info != null) { ResultInfo.Description = "Success| Updation Sucess"; ResultInfo.Status = true; } } } catch (Exception ex) { } return(Json(ResultInfo, JsonRequestBehavior.AllowGet)); }
public JsonResult EditProfileSchoolStu(long UID, long SchoolID) { ResultInfo <SchoolStudentEdit> ResultInfo = new ResultInfo <SchoolStudentEdit>() { Status = false, Description = "Failed|Login" }; SchoolStudent obj = new SchoolStudent(); SchoolStudentEdit demo = new SchoolStudentEdit(); try { if (UID > 0) { demo = obj.EditSchoolStudentProfile(UID); if (demo.DivisionID > 0) { demo.Levels = obj.GetlevelListByDivID(demo.DivisionID); } if (demo.Level_ID > 0) { demo.ClassObj = obj.GetClassByLevelID(demo.Level_ID, demo.School_ID); } demo.GenderInfo = obj.GetAllGender(); demo.Divisions = obj.GetDivisionList(); } ResultInfo.Info = demo; if (ResultInfo.Info != null) { ResultInfo.Description = "Success| Get all School Student Details"; ResultInfo.Status = true; } } catch (Exception ex) { } return(Json(ResultInfo, JsonRequestBehavior.AllowGet)); }