Ejemplo n.º 1
0
        // DELETE api/<controller>/5
        public Sys_DynamicColumnModel Delete(Guid id)
        {
            var service = new Sys_DynamicColumnServices();

            service.Remove <Sys_DynamicColumnEntity>(id);
            var result = new Sys_DynamicColumnModel();

            return(result);
        }
Ejemplo n.º 2
0
        public void NUnit_DynamicColumn_Domain_Remove()
        {
            Sys_DynamicColumnServices service = new Sys_DynamicColumnServices();
            int rs    = 0;
            var model = new Sys_DynamicColumn {
                Id = 78
            };
            var result = service.Remove <Sys_DynamicColumn>(model.Id);

            //   NUnit.Framework.Assert.IsTrue(result);
            if (result == ActionStatus.EditSucceed.ToString())
            {
                rs += 1;
                Console.WriteLine("Process Success >>> Remove >>> " + model.Id);
            }
        }
 public void NUnit_DynamicColumn_Domain_Remove()
 {
     Sys_DynamicColumnServices service = new Sys_DynamicColumnServices();
     int rs = 0;
     var model = new Sys_DynamicColumn { Id = 78 };
     var result = service.Remove<Sys_DynamicColumn>(model.Id);
  //   NUnit.Framework.Assert.IsTrue(result);
     if (result == ActionStatus.EditSucceed.ToString())
     {
         rs += 1;
         Console.WriteLine("Process Success >>> Remove >>> " + model.Id);
     }
 }