Esempio n. 1
0
 public static Message Update(Area info)
 {
     Message msg = new Message();
     if (AreaService.Update(info) > 0)
     {
         msg.Type = MessageType.None;
         msg.Text = "保存管理员信息成功!";
     }
     else
     {
         msg.Type = MessageType.Error;
         msg.Text = "保存管理员信息失败,请重新尝试!";
     }
     return msg;
 }
Esempio n. 2
0
 public static Message Delete(int id)
 {
     Message msg = new Message();
     if (AreaService.Delete(id) > 0)
     {
         msg.Type = MessageType.None;
         msg.Text = "删除管理员成功!";
     }
     else
     {
         msg.Type = MessageType.Error;
         msg.Text = "删除管理员失败,请重新尝试!";
     }
     return msg;
 }