Пример #1
0
        public bool Delete(BILL_SHOW_OPTIONSVM entity)
        {
            BILL_SHOW_OPTIONS bt = new BILL_SHOW_OPTIONS
            {
                BILL_SHOW_ID      = entity.BILL_SHOW_ID,
                BILL_SHOW_ABRV_AR = entity.BILL_SHOW_ABRV_AR,
                BILL_SHOW_ABRV_EN = entity.BILL_SHOW_ABRV_EN,
                BILL_SHOW_AR_NAME = entity.BILL_SHOW_AR_NAME,
                BILL_SHOW_EN_NAME = entity.BILL_SHOW_EN_NAME,
                AddedBy           = entity.AddedBy,
                AddedOn           = entity.AddedOn,
                UpdatedBy         = entity.UpdatedBy,
                UpdatedOn         = entity.UpdatedOn
            };

            billShowOptRepo.Delete(bt, entity.BILL_SHOW_ID);
            return(true);
        }
Пример #2
0
 public Task <bool> DeleteAsync(BILL_SHOW_OPTIONSVM entity)
 {
     return(Task.Run <bool>(() =>
     {
         BILL_SHOW_OPTIONS bt = new BILL_SHOW_OPTIONS
         {
             BILL_SHOW_ID = entity.BILL_SHOW_ID,
             BILL_SHOW_ABRV_AR = entity.BILL_SHOW_ABRV_AR,
             BILL_SHOW_ABRV_EN = entity.BILL_SHOW_ABRV_EN,
             BILL_SHOW_AR_NAME = entity.BILL_SHOW_AR_NAME,
             BILL_SHOW_EN_NAME = entity.BILL_SHOW_EN_NAME,
             AddedBy = entity.AddedBy,
             AddedOn = entity.AddedOn,
             UpdatedBy = entity.UpdatedBy,
             UpdatedOn = entity.UpdatedOn
         };
         billShowOptRepo.Delete(bt, entity.BILL_SHOW_ID);
         return true;
     }));
 }