Example #1
0
        public async Task <int> Delete(int id)
        {
            await BookingOrderLogic.DeleteModel(id);

            var blockingPlan = await DbContext.BlockingPlans.FirstOrDefaultAsync(d => d.BookingOrderId.Equals(id) && d.IsDeleted.Equals(false));

            if (blockingPlan != null)
            {
                BlockingPlanLogic.UpdateModelStatus(blockingPlan.Id, blockingPlan, BlockingPlanStatus.DELETED);
            }
            return(await DbContext.SaveChangesAsync());
        }
Example #2
0
        public async Task <int> Delete(int id)
        {
            await BookingOrderLogic.DeleteModel(id);

            return(await DbContext.SaveChangesAsync());
        }