DotNetClub.Web.ViewModels.Notice.NoticeViewModel.NoticeViewModel C# (CSharp) Method

NoticeViewModel() public method

public NoticeViewModel ( string message, string title = null, MessageType type = MessageType.Danger ) : System
message string
title string
type MessageType
return System
        public NoticeViewModel(string message, string title = null, MessageType type = MessageType.Danger)
        {
            if (message == null)
            {
                throw new ArgumentNullException("message");
            }

            this.Message = message;
            this.Title = title ?? "提示";
            this.Type = type;
        }
NoticeViewModel