Пример #1
0
        //---------------------------------------------------------------------
        //AddUserMessage
        //---------------------------------------------------------------------
        public EnumMessageInsertionResult AddUserMessage(MessageDto msg)
        {
            string sp         = "[dbo].[Message_AddUserMessage]";
            var    parameters = msg.GetMemberParameters(
                u => u.MessageTypeID,
                u => u.ThreadID,
                u => u.Title,
                u => u.Details,
                u => u.OrderID,
                u => u.UserID,
                u => u.MessageStatusID);

            EnumMessageInsertionResult result = (EnumMessageInsertionResult)SqlDataHelper.ExecuteScalarStoredProcedure(sp, parameters);

            return(result);
        }