// GET: Medico/Delete/5
        public ActionResult Delete(string id)
        {
            int iId = 0;

            try
            {
                iId = Convert.ToInt32(id);
            }
            catch
            { }

            if (iId == 0)
            {
                return(RedirectToAction("Index"));
            }
            else
            {
                try
                {
                    Medico med = new Medico(iId);
                    med.Excluir();
                    return(RedirectToAction("Index"));
                    //return View(med);
                }
                catch (Exception ex)
                {
                    throw;
                }
            }
        }