Exemple #1
0
 public static MsgViewModel ErrorMsg(string msg)
 {
     MsgViewModel mvm = new MsgViewModel()
     {
         MsgType = MsgType.Error,
         Title = "Error",
         Message = msg,
     };
     return mvm;
 }
Exemple #2
0
 public static MsgViewModel SuccessMsg(string msg)
 {
     MsgViewModel mvm = new MsgViewModel()
     {
         MsgType = MsgType.Success,
         Title = "Success",
         Message = msg,
     };
     return mvm;
 }