public async Task <ActionResult> DeleteConfirmed(int id)
        {
            Med_Organization med_Organization = await db.Med_Organizations.FindAsync(id);

            db.Med_Organizations.Remove(med_Organization);
            await db.SaveChangesAsync();

            return(RedirectToAction("Index"));
        }
        public async Task <ActionResult> Edit([Bind(Include = "Med_Organization_Id,Name,Address,PhoneNumber")] Med_Organization med_Organization)
        {
            if (ModelState.IsValid)
            {
                db.Entry(med_Organization).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(med_Organization));
        }
        public async Task <ActionResult> Create([Bind(Include = "Med_Organization_Id,Name,Address,PhoneNumber")] Med_Organization med_Organization)
        {
            if (ModelState.IsValid)
            {
                db.Med_Organizations.Add(med_Organization);
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }

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

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