public async Task <ActionResult> DeleteConfirmed(int id)
        {
            M_MenuMaster m_MenuMaster = await db.M_MenuMaster.FindAsync(id);

            db.M_MenuMaster.Remove(m_MenuMaster);
            await db.SaveChangesAsync();

            return(RedirectToAction("Index"));
        }
        public async Task <ActionResult> Edit([Bind(Include = "MenuID,MenuName,SubMenu,Url,AltTag,Remarks,CreatedBy,CreatedDate,ModifiedBy,ModifiedDate,Active")] M_MenuMaster m_MenuMaster)
        {
            if (ModelState.IsValid)
            {
                db.Entry(m_MenuMaster).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(m_MenuMaster));
        }
        // GET: MenuMaster/Delete/5
        public async Task <ActionResult> Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            M_MenuMaster m_MenuMaster = await db.M_MenuMaster.FindAsync(id);

            if (m_MenuMaster == null)
            {
                return(HttpNotFound());
            }
            return(View(m_MenuMaster));
        }