Example #1
0
        public GeneralResponse DeleteSms(DeleteRequest request)
        {
            GeneralResponse response = new GeneralResponse();

            Sms sms = new Sms();

            sms = _smsRepository.FindBy(request.ID);

            if (sms != null)
            {
                try
                {
                    _smsRepository.Remove(sms);
                    _uow.Commit();

                    ////response.success = true;
                }
                catch (Exception ex)
                {
                    response.ErrorMessages.Add(ex.Message);
                }
            }

            return(response);
        }