public ResponseMessageWrap <int> Update([FromBody] CoursePlan coursePlan) { return(new ResponseMessageWrap <int> { Body = CoursePlanService.Update(coursePlan) }); }
public ResponseMessageWrap <int> Insert([FromBody] CoursePlan coursePlan) { return(new ResponseMessageWrap <int> { Body = CoursePlanService.Insert(coursePlan) }); }
public ResponseMessageWrap <int> DeleteById(long id) { return(new ResponseMessageWrap <int> { Body = CoursePlanService.DeleteById(id) }); }
public CoursePlanController(CoursePlanService coursePlanService, ICoursePlanRepository coursePlanRepository) { CoursePlanService = coursePlanService; CoursePlanRepository = coursePlanRepository; }