public async Task <ActionResult> DeleteConfirmed(int id)
        {
            MobilePhoneProvider mobilePhoneProvider = await db.MobilePhoneProviders.FindAsync(id);

            db.MobilePhoneProviders.Remove(mobilePhoneProvider);
            await db.SaveChangesAsync();

            return(RedirectToAction("Index"));
        }
        public async Task <ActionResult> Edit([Bind(Include = "MobilePhoneProviderId,Name,URL")] MobilePhoneProvider mobilePhoneProvider)
        {
            if (ModelState.IsValid)
            {
                db.Entry(mobilePhoneProvider).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(mobilePhoneProvider));
        }
        public async Task <ActionResult> Create([Bind(Include = "MobilePhoneProviderId,Name,URL")] MobilePhoneProvider mobilePhoneProvider)
        {
            if (ModelState.IsValid)
            {
                db.MobilePhoneProviders.Add(mobilePhoneProvider);
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }

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

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