Пример #1
0
 /// <summary>
 /// [Hieu.Van] - Xóa hoặc chuyển đổi trạng thái sang IsDelete
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public Att_AllowLimitOvertimeModel DeleteOrRemove(Guid id)
 {
     //ActionService service = new ActionService(UserLogin);
     //var result = service.DeleteOrRemove<Att_AllowLimitOvertimeEntity, Att_AllowLimitOvertimeModel>(id);
     //return result;
     Att_AllowLimitOvertimeServices service = new Att_AllowLimitOvertimeServices();
     var result = service.Remove<Att_AllowLimitOvertimeEntity>(id);
     //return result;
     return new Att_AllowLimitOvertimeModel();
 }
 public void NUnit_AllowLimitOvertime_Domain_Remove()
 {
     Att_AllowLimitOvertimeServices service = new Att_AllowLimitOvertimeServices();
     int rs = 0;
     var model = new Att_AllowLimitOvertime { Id = 5 };
     bool result = service.Remove(model.Id);
     NUnit.Framework.Assert.IsTrue(result);
     if (result == true)
     {
         rs += 1;
         Console.WriteLine("Process Success >>> Remove >>> " + model.Id);
     }
 }