private bool CustomSaveOnImport(T_Education t_education, out string customerror, int i) { var result = false; customerror = ""; return(result); }
private bool CustomDelete(T_Education t_education, out bool customdelete_hasissues, string command = "") { var result = false; customdelete_hasissues = false; return(result); }
private bool CustomSaveOnEdit(T_Education t_education, out bool customsave_hasissues, string command = "") { var result = false; customsave_hasissues = false; return(result); }
public string CheckBeforeSave(T_Education t_education, string command = "") { var AlertMsg = ""; // Write your logic here //Make sure to assign AlertMsg with proper message //AlertMsg = "Validation Alert - Before Save !! Information not saved."; //ModelState.AddModelError("CustomError", AlertMsg); //ViewBag.ApplicationError = AlertMsg; return(AlertMsg); }
public bool CheckBeforeDelete(T_Education t_education) { var result = true; // Write your logic here if (!result) { var AlertMsg = "Validation Alert - Before Delete !! Information not deleted."; ModelState.AddModelError("CustomError", AlertMsg); ViewBag.ApplicationError = AlertMsg; } return(result); }
public List <T_Education> getEducation() { List <T_Education> educations = new List <T_Education>(); DataTable dt = es.getEducation(); if (dt.Rows.Count > 0) { foreach (DataRow dr in dt.Rows) { //id,educationName,educationNameEN,educationNote T_Education education = new T_Education(); education.id = Convert.ToInt32(dr["id"]); education.educationName = dr["educationName"].ToString(); education.educationNameEN = dr["educationNameEN"].ToString(); education.educationNote = dr["educationNote"].ToString(); educations.Add(education); } } return(educations); }
public void AfterSave(T_Education t_education) { // Write your logic here }
public void OnSaving(T_Education t_education, ApplicationContext db) { // Write your logic here }
public void OnDeleting(T_Education t_education) { // Write your logic here }
private RedirectToRouteResult CustomRedirectUrl(T_Education t_education, string action, string command = "") { // Sample Custom implemention below // return RedirectToAction("Index", "T_Education"); return(null); }
private void CustomLoadViewDataListAfterEdit(T_Education t_education) { }
private void CustomLoadViewDataListBeforeEdit(T_Education t_education) { }
private void CustomLoadViewDataListAfterOnCreate(T_Education t_education) { }