Beispiel #1
0
        public MessageResponse Insert(MessageRequest request)
        {
            var entityToSave = _messageMapper.Parse(request);

            entityToSave.Sms = RandomNumberGenerator.GetRandom(6, 7).ToString("D6");
            Insert(entityToSave);
            return(_messageMapper.Map(entityToSave));
        }