public async Task <IActionResult> Edit(int id, [Bind("Client_ID,Client_Name,Client_Mobile,Client_Address,Client_Edate")] Client_Master client_Master)
        {
            if (id != client_Master.Client_ID)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(client_Master);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!Client_MasterExists(client_Master.Client_ID))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(client_Master));
        }
Exemple #2
0
        public async Task <IActionResult> Edit(int id, [Bind("Payment_ID,Party_Name,Mobile,Qty,Amount,Paid_Amt,Status,Payment_Edate")] Payment_Master payment_Master)
        {
            if (id != payment_Master.Payment_ID)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(payment_Master);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!Payment_MasterExists(payment_Master.Payment_ID))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(payment_Master));
        }
Exemple #3
0
        public async Task <IActionResult> Edit(int id, [Bind("Stock_ID,Company_Name,Item_Name,Type,Qty,Buy_Price,Sell_Price,Location,Stock_Edate")] Stock_in_Master stock_in_Master)
        {
            if (id != stock_in_Master.Stock_ID)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(stock_in_Master);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!Stock_in_MasterExists(stock_in_Master.Stock_ID))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(stock_in_Master));
        }
        public async Task <IActionResult> Edit(int id, [Bind("Sale_ID,Party_Name,Mobile,Company,Item_Name,Type,Qty,Price,Total_Price,Bill_No,Stock_Edate")] Sale_Master sale_Master)
        {
            if (id != sale_Master.Sale_ID)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(sale_Master);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!Sale_MasterExists(sale_Master.Sale_ID))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(sale_Master));
        }
        public async Task <IActionResult> Edit(int id, [Bind("Bill_ID,Company_Name,Amount,type,Payment_Date")] Bill_Payment_Master bill_Payment_Master)
        {
            if (id != bill_Payment_Master.Bill_ID)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(bill_Payment_Master);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!Bill_Payment_MasterExists(bill_Payment_Master.Bill_ID))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(bill_Payment_Master));
        }