public void TcEditGroup()
        {
            Group editGroup = new Group();

            editGroup.Name         = "BODYGUARD";
            editGroup.Descriptions = "Group bảo vệ chỉnh sửa";
            editGroup.Modified     = DateTime.Now;
            Assert.AreEqual(_provider.editGroup(6, editGroup), true);
        }
Exemplo n.º 2
0
 public ActionResult EditPGroup(int ID, Group group)
 {
     try
     {
         return(Json(new { success = _provider.editGroup(ID, group) }));
     }
     catch (Exception ex)
     {
         return(Json(new { success = false, content = ex.Message.ToString() }));
     }
 }