public ActionResult Create(EDM_Destination destination) { try { // TODO: Add insert logic here return RedirectToAction("Index"); } catch { return View(); } }
public bool SaveDestinationDetail(EDM_Destination destination) { try { var dest = GetDestinationByID(destination.DestinationID); _ent.ApplyPropertyChanges(dest.EntityKey.EntitySetName, destination); _ent.SaveChanges(); return true; } catch { return false; } }