public async Task <SchedulesViewModel> AddNewSchedules(SchedulesViewModel model) { var mapped = _mapper.Map <Schedules>(model); var result = await _schedulesRepository.Add(mapped); var data = _mapper.Map <SchedulesViewModel>(result); return(data); }
public long Add(Schedule schedule) { return(_schedulesRepository.Add(schedule)); }