示例#1
0
 /// <summary>
 /// [Son.Vo] - Xóa hoặc chuyển đổi trạng thái của Lịch Sử Thẻ(Att_WorkDay) sang IsDelete
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public Att_WorkdayModel DeleteOrRemove(Guid id)
 {
     //ActionService service = new ActionService(UserLogin);
     //var result = service.DeleteOrRemove<Att_WorkdayEntity, Att_WorkdayModel>(id);
     //return result;
     Att_WorkDayServices service = new Att_WorkDayServices();
     var result = service.Remove<Att_WorkdayEntity>(id);
     //return result;
     return new Att_WorkdayModel();
 }
 public void NUnit_WorkDay_Domain_Remove()
 {
     Att_WorkDayServices service = new Att_WorkDayServices();
     int rs = 0;
     var model = new Att_WorkDay { Id = 3 };
     string result = service.Remove<Att_WorkDayEntity>(model.Id);
     if (result != string.Empty)
     {
         rs += 1;
         Console.WriteLine("Process Success >>> Remove >>> " + model.Id);
     }
 }