コード例 #1
0
        public async Task <ActivityHourDtoResponse> CreateActivityHour(ActivityHourDto activityHour)
        {
            ActivityHours newActivityHour = await _activityRepository.CreateActivityHoursAsync(new ActivityHours()
            {
                DateHour   = activityHour.DateHour,
                Hour       = activityHour.Hour,
                IdActivity = activityHour.IdActivity
            });

            return(newActivityHour.MapToDtoResponse());
        }