Пример #1
0
        public ResponseDto <CourseFee> Save([FromBody] CourseFee assignment)
        {
            ResponseDto <CourseFee> response = new ResponseDto <CourseFee>(_commonResource);

            try
            {
                response.Data = _courseFeeService.Save(assignment);
                return(response);
            }
            catch (Exception ex)
            {
                return(response.HandleException(response));
            }
        }
Пример #2
0
        public ResponseDto <bool> Delete([FromBody] CourseFee courseFee)
        {
            ResponseDto <bool> response = new ResponseDto <bool>(_commonResource);

            try
            {
                _courseFeeService.Delete(courseFee);
                response.Data = true;
            }
            catch (Exception ex)
            {
                return(response.HandleDeleteException(response, ex));
            }
            return(response);
        }
 public CourseFee Save(CourseFee courseFee)
 {
     return(_courseFeeRepository.Save(courseFee));
 }
 public void Delete(CourseFee courseFee)
 {
     _courseFeeRepository.Delete(courseFee);
 }