public async Task ChangeSchoolingEventFollow(ChangeFollowSchoolingEventViewModel viewModel)
        {
            viewModel.UserId = _user.Id;

            var command = Mapper.Map <ChangeFollowSchoolingEventCommand>(viewModel);

            await _bus.SendCommand(command);
        }
Example #2
0
        public async Task <IActionResult> ChangeSchoolingEventFollow([FromBody] ChangeFollowSchoolingEventViewModel viewModel)
        {
            if (!ModelState.IsValid)
            {
                NotifyModelStateErrors();
                return(Response(viewModel));
            }

            await _schoolingEventService.ChangeSchoolingEventFollow(viewModel);

            return(Response(viewModel));
        }