예제 #1
0
        public ActionResult Create(EDM_Destination destination)
        {
            try
            {
                // TODO: Add insert logic here

                return RedirectToAction("Index");
            }
            catch
            {
                return View();
            }
        }
예제 #2
0
 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;
     }
 }