public bool RemoveDatabase() { try { return ds.Database.Delete(); } catch (Exception) { return false; } }
public ActionResult RemoveDatabase() { if (m.RemoveDatabase()) { return(Content("database has been removed")); } else { return(Content("could not remove database")); } }