Example #1
0
        public async Task <SendResponseModel> Post([FromBody] SendRequestModel model)
        {
            var userId = _userService.GetProperUserId(User).Value;
            var send   = model.ToSend(userId, _sendService);
            await _sendService.SaveSendAsync(send);

            return(new SendResponseModel(send, _globalSettings));
        }