Exemplo n.º 1
0
        public int AddCourseSubtopic(CourseSubtopic subtopicToAdd)
        {
            subtopicToAdd.Description = subtopicToAdd.Description ?? "";
            subtopicToAdd.IsActive    = true;
            subtopicToAdd.CreatedOn   = DateTime.Now;

            return(LearningPathDataAccessor.AddCourseSubtopic(subtopicToAdd));
        }
Exemplo n.º 2
0
        public JsonResult AddCourseSubtopic(CourseSubtopic subtopicToAdd)
        {
            subtopicToAdd.AddedBy = CurrentUser.UserId;

            return(Json(new LearningPathBL().AddCourseSubtopic(subtopicToAdd), JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 3
0
 public JsonResult UpdateCourseSubtopic(CourseSubtopic subtopicToUpdate)
 {
     return(Json(new LearningPathBL().UpdateCourseSubtopic(subtopicToUpdate)));
 }
Exemplo n.º 4
0
 public bool UpdateCourseSubtopic(CourseSubtopic subtopicToUpdate)
 {
     subtopicToUpdate.Description = subtopicToUpdate.Description ?? "";
     return(LearningPathDataAccessor.UpdateCourseSubtopic(subtopicToUpdate));
 }