Exemplo n.º 1
0
        public bool AddClientMessage(ClientMessage clientMessage)
        {
            DAL.Entity.ClientMessage clm = new DAL.Entity.ClientMessage
            {
                Id       = clientMessage.Id,
                DateTime = clientMessage.DateTime,
                Author   = clientMessage.Author,
                Text     = clientMessage.Text,
                Email    = clientMessage.Email,
                Phone    = clientMessage.Phone
            };

            if (clm != null)
            {
                _dal.AddClientMessage(clm);
                return(true);
            }
            else
            {
                return(false);
            }
        }