// Lis 6/28 public Response Create(LmsUser user) { var response = new Response(); try { _lmsUserRepository.Create(user); response.Success = true; } catch (Exception ex) { response.Message = ex.Message; } return response; }
public Response EditCourseDetails(Course courseToEdit) { var response = new Response(); try { _lmsCourseRepository.EditTeacherCourse(courseToEdit); response.Success = true; } catch (Exception ex) { response.Message = ex.Message; } return response; }
public Response AddCourse(Course courseToAdd) { var response = new Response(); try { _lmsCourseRepository.AddCourse(courseToAdd); response.Success = true; } catch (Exception ex) { response.Message = ex.Message; } return response; }