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

            db.M_AviationCompanyMaster.Remove(m_AviationCompanyMaster);
            await db.SaveChangesAsync();

            return(RedirectToAction("Index"));
        }
        public async Task <ActionResult> Edit([Bind(Include = "CompanyID,CompanyCode,CompanyName,CityID,ContactPerson,ContactNo,CreatedBy,CreatedDate,ModifiedBy,ModifiedDate,Active")] M_AviationCompanyMaster m_AviationCompanyMaster)
        {
            if (ModelState.IsValid)
            {
                db.Entry(m_AviationCompanyMaster).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            ViewBag.CityID = new SelectList(db.M_CityMaster, "CityID", "CityCode", m_AviationCompanyMaster.CityID);
            return(View(m_AviationCompanyMaster));
        }
        // GET: M_AviationCompanyMaster/Details/5
        public async Task <ActionResult> Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            M_AviationCompanyMaster m_AviationCompanyMaster = await db.M_AviationCompanyMaster.FindAsync(id);

            if (m_AviationCompanyMaster == null)
            {
                return(HttpNotFound());
            }
            return(View(m_AviationCompanyMaster));
        }
        // GET: M_AviationCompanyMaster/Edit/5
        public async Task <ActionResult> Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            M_AviationCompanyMaster m_AviationCompanyMaster = await db.M_AviationCompanyMaster.FindAsync(id);

            if (m_AviationCompanyMaster == null)
            {
                return(HttpNotFound());
            }
            ViewBag.CityID = new SelectList(db.M_CityMaster, "CityID", "CityCode", m_AviationCompanyMaster.CityID);
            return(View(m_AviationCompanyMaster));
        }