Example #1
0
        public async Task <ActivityDtoResponse> CreateActivity(ActivityDto activity)
        {
            Activity newActivity = await _activityRepository.CreateActivityAsync(new Activity()
            {
                Description = activity.Description, UserId = activity.UserId
            });

            return(newActivity.MapToDtoResponse());
        }