public void NUnit_GroupPermission_Domain_Remove()
        {
            Sys_GroupPermissionServices service = new Sys_GroupPermissionServices();
            int rs    = 0;
            var model = new Sys_GroupPermission {
                Id = 1
            };
            var result = service.Remove <Sys_GroupPermission>(model.Id);

            //  NUnit.Framework.Assert.IsTrue(result);
            if (result == ActionStatus.EditSucceed.ToString())
            {
                rs += 1;
                Console.WriteLine("Process Success >>> Remove >>> " + model.Id);
            }
        }
 public void NUnit_GroupPermission_Domain_Remove()
 {
     Sys_GroupPermissionServices service = new Sys_GroupPermissionServices();
     int rs = 0;
     var model = new Sys_GroupPermission { Id = 1 };
     var result = service.Remove<Sys_GroupPermission>(model.Id);
   //  NUnit.Framework.Assert.IsTrue(result);
     if (result == ActionStatus.EditSucceed.ToString())
     {
         rs += 1;
         Console.WriteLine("Process Success >>> Remove >>> " + model.Id);
     }
 }
Ejemplo n.º 3
0
 // DELETE api/<controller>/5
 public void Delete(Guid id)
 {
     var service = new Sys_GroupPermissionServices();
     var result  = service.Remove <Sys_GroupPermission2Entity>(id);
 }