public async Task<IActionResult> Edit(string id, [Bind("StyleCode,StoneQltyId,StoneGm,StonePcs,StoneCrt,StoneRate,StoneAmt")] StoneMst stoneMst)
        {
            if (id != stoneMst.StyleCode)
            {
                return NotFound();
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(stoneMst);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!StoneMstExists(stoneMst.StyleCode))
                    {
                        return NotFound();
                    }
                    else
                    {
                        throw;
                    }
                }
                return RedirectToAction(nameof(Index));
            }
            ViewData["StyleCode"] = new SelectList(_context.ItemMst, "StyleCode", "StyleCode", stoneMst.StyleCode);
            return View(stoneMst);
        }
 public async Task<IActionResult> Create([Bind("StyleCode,StoneQltyId,StoneGm,StonePcs,StoneCrt,StoneRate,StoneAmt")] StoneMst stoneMst)
 {
     if (ModelState.IsValid)
     {
         _context.Add(stoneMst);
         await _context.SaveChangesAsync();
         return RedirectToAction(nameof(Index));
     }
     ViewData["StyleCode"] = new SelectList(_context.ItemMst, "StyleCode", "StyleCode", stoneMst.StyleCode);
     return View(stoneMst);
 }