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

            db.M_StateCountryMaster.Remove(m_StateCountryMaster);
            await db.SaveChangesAsync();

            return(RedirectToAction("Index"));
        }
        public async Task <ActionResult> Edit([Bind(Include = "StateCountryID,StateCode,StateName,CountryCode,CountryName,Description,CreatedBy,CreatedDate,ModifiedBy,ModifiedDate,Active")] M_StateCountryMaster m_StateCountryMaster)
        {
            if (ModelState.IsValid)
            {
                db.Entry(m_StateCountryMaster).State = EntityState.Modified;
                await db.SaveChangesAsync();

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

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