Exemple #1
0
        public async Task <IActionResult> Create([Bind("Payment_ID,Party_Name,Mobile,Qty,Amount,Paid_Amt,Status,Payment_Edate")] Payment_Master payment_Master)
        {
            if (ModelState.IsValid)
            {
                _context.Add(payment_Master);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(payment_Master));
        }
        public async Task <IActionResult> Create([Bind("Client_ID,Client_Name,Client_Mobile,Client_Address,Client_Edate")] Client_Master client_Master)
        {
            if (ModelState.IsValid)
            {
                _context.Add(client_Master);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(client_Master));
        }
        public async Task <IActionResult> Create([Bind("Sale_ID,Party_Name,Mobile,Company,Item_Name,Type,Qty,Price,Total_Price,Bill_No,Stock_Edate")] Sale_Master sale_Master)
        {
            if (ModelState.IsValid)
            {
                _context.Add(sale_Master);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(sale_Master));
        }
Exemple #4
0
        public async Task <IActionResult> Create([Bind("Stock_ID,Company_Name,Item_Name,Type,Qty,Buy_Price,Sell_Price,Location,Stock_Edate")] Stock_in_Master stock_in_Master)
        {
            if (ModelState.IsValid)
            {
                _context.Add(stock_in_Master);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(stock_in_Master));
        }
        public async Task <IActionResult> Create([Bind("Company_ID,Company_Name,Contact_Number,Company_Address,Contact,Company_Edate")] Company_Master company_Master)
        {
            if (ModelState.IsValid)
            {
                _context.Add(company_Master);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(company_Master));
        }
        public async Task <IActionResult> Create([Bind("Bill_ID,Company_Name,Amount,type,Payment_Date")] Bill_Payment_Master bill_Payment_Master)
        {
            if (ModelState.IsValid)
            {
                _context.Add(bill_Payment_Master);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(bill_Payment_Master));
        }
Exemple #7
0
        public async Task <IActionResult> Create([Bind("Stock_ID,Company_Name,Item_Name,Type,Total_Qty,Available_Qty,Sell_Qty,Available_Price,sell_price")] Stock_Master stock_Master)
        {
            if (ModelState.IsValid)
            {
                _context.Add(stock_Master);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(stock_Master));
        }