public ActionResult EditTrack(string trackTC) { var model = EditCourseVMService.GetCourseForEdit(trackTC); if (model == null) { return(null); } return(PartialView(PartialViewNames.EditTrack, model)); }
public ActionResult EditCourse(decimal orderDetailID) { var model = EditCourseVMService.GetCourseForEdit(orderDetailID); if (model == null) { return(null); } if (model.IsTrack) { model.IsTrackCourse = true; return(PartialView(PartialViewNames.EditTrackCourse, model)); } return(PartialView(model)); }