예제 #1
0
 /// <summary>
 /// 创建一个SaveChange的结果提示
 /// </summary>
 public static MsgModel SaveChangeResult(int changeCount, string error)
 {
     if (changeCount > 0)
     {
         return(MsgModel.CreateSuccess());
     }
     if (changeCount != 0)
     {
         return(MsgModel.CreateError(error));
     }
     return(MsgModel.CreateSuccess("执行成功,但没有任何数据受到影响"));
 }