//
        // /TrustRegion/Create
        public ActionResult Create(string TrustRegionName, string Description, int CountryID)
        {
            TrustRegion newRegion = new TrustRegion();

            newRegion.TrustRegionName = TrustRegionName;
            newRegion.TrustRegionDescription = Description;
            newRegion.CountryID = CountryID;
            newRegion.TrustRegionIsActive = 1;

            trustRegionModel.Insert(newRegion);
            ViewBag.Alert = "true";
            ViewBag.Message = "Action success!";
            ViewBag.URL = "/TrustRegion/List";

            return View("../Shared/Redirect");
            //return RedirectToAction("List", "TrustRegion");
        }
 //insert
 public void Insert(TrustRegion newOrg)
 {
     dataAccess.TrustRegions.InsertOnSubmit(newOrg);
     dataAccess.SubmitChanges();
 }
 partial void DeleteTrustRegion(TrustRegion instance);
 partial void UpdateTrustRegion(TrustRegion instance);
 partial void InsertTrustRegion(TrustRegion instance);
		private void detach_TrustRegions(TrustRegion entity)
		{
			this.SendPropertyChanging();
			entity.Country = null;
		}