public void Insert(SemesterModel model) { if (ModelState.IsValid) { _repository.Insert(model); } }
public JsonResult Insert(SemesterModal semester) { return(Json(_databaseConnection.Insert(semester), JsonRequestBehavior.AllowGet)); }
public void Insert(SemesterModel model) { if (ModelState.IsValid) { _repository.Insert(model); } }
public JsonResult Insert(SemesterModal semester) { return(Json(_databaseConnection.Insert(semester), JsonRequestBehavior.AllowGet)); }