public async Task <IActionResult> PutDProductWarehouseStock(int id, DProductWarehouseStock dProductWarehouseStock)
        {
            if (id != dProductWarehouseStock.Id)
            {
                return(BadRequest());
            }

            _context.Entry(dProductWarehouseStock).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!DProductWarehouseStockExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }
        public async Task <IActionResult> PutSmShippedItemBatch(int id, SmShippedItemBatch smShippedItemBatch)
        {
            if (id != smShippedItemBatch.Id)
            {
                return(BadRequest());
            }

            _context.Entry(smShippedItemBatch).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!SmShippedItemBatchExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }
示例#3
0
        public async Task <IActionResult> PutUmUser(int id, UmUser umUser)
        {
            if (id != umUser.Id)
            {
                return(BadRequest());
            }

            _context.Entry(umUser).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!UmUserExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }
        public async Task <IActionResult> PutHrmEmployee(int id, HrmEmployee hrmEmployee)
        {
            if (id != hrmEmployee.Id)
            {
                return(BadRequest());
            }

            _context.Entry(hrmEmployee).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!HrmEmployeeExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }
        public async Task <IActionResult> PutGsUserSetting(int id, GsUserSetting gsUserSetting)
        {
            if (id != gsUserSetting.UserId)
            {
                return(BadRequest());
            }

            _context.Entry(gsUserSetting).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!GsUserSettingExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }
示例#6
0
        public async Task <IActionResult> PutSProductOfferItem(int id, SProductOfferItem sProductOfferItem)
        {
            if (id != sProductOfferItem.Id)
            {
                return(BadRequest());
            }

            _context.Entry(sProductOfferItem).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!SProductOfferItemExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }
        public async Task <IActionResult> PutCmAddress(int id, CmAddress cmAddress)
        {
            if (id != cmAddress.Id)
            {
                return(BadRequest());
            }

            _context.Entry(cmAddress).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!CmAddressExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }
示例#8
0
        public async Task <IActionResult> PutDCommentsThread(int id, DCommentsThread dCommentsThread)
        {
            if (id != dCommentsThread.Id)
            {
                return(BadRequest());
            }

            _context.Entry(dCommentsThread).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!DCommentsThreadExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }
        public async Task <IActionResult> PutNmNotificationCategory(int id, NmNotificationCategory nmNotificationCategory)
        {
            if (id != nmNotificationCategory.Id)
            {
                return(BadRequest());
            }

            _context.Entry(nmNotificationCategory).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!NmNotificationCategoryExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }
        public async Task <IActionResult> PutFimCashPayment(int id, FimCashPayment fimCashPayment)
        {
            if (id != fimCashPayment.Id)
            {
                return(BadRequest());
            }

            _context.Entry(fimCashPayment).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!FimCashPaymentExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }
示例#11
0
        public async Task <IActionResult> PutDItemRemovalHistory(int id, DItemRemovalHistory dItemRemovalHistory)
        {
            if (id != dItemRemovalHistory.ItemId)
            {
                return(BadRequest());
            }

            _context.Entry(dItemRemovalHistory).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!DItemRemovalHistoryExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }