private void detach_Teams(Team entity)
		{
			this.SendPropertyChanging();
			entity.Contact = null;
		}
        //
        // /Team/Create/DepID
        public ActionResult Create(int id, string TeamName, string TeamShortDescription, string TypeOfBusinessID, int? ContactID,
            string AddressLine1, string AddressLine2, string AddressLine3, string TeamFullDescription, string PhoneNumber,
            string PostCode, string Fax, string CityTown, string Email, string County, string WebAddress,
            int? CountryID)
        {
            Team newTeam = new Team();

            newTeam.TeamName = TeamName;
            newTeam.TeamShortDescription = TeamShortDescription;
            newTeam.TypeOfBusiness = TypeOfBusinessID;
            newTeam.LeadContactID = ContactID;
            newTeam.TeamAddr1 = AddressLine1;
            newTeam.TeamAddr2 = AddressLine2;
            newTeam.TeamAddr3 = AddressLine3;
            newTeam.TeamFullDescription = TeamFullDescription;
            newTeam.TeamPhone = PhoneNumber;
            newTeam.TeamPostCode = PostCode;
            newTeam.TeamFax = Fax;
            newTeam.CityTown = CityTown;
            newTeam.TeamEmail = Email;
            newTeam.County = County;
            newTeam.TeamWebAddr = WebAddress;
            newTeam.CountryID = CountryID;

            newTeam.DepID = id;
            newTeam.TeamIsActive = 1;

            teamModel.Insert(newTeam);
            ViewBag.Alert = "true";
            ViewBag.Message = "Action success!";
            ViewBag.URL = "/Department/Amend/" + newTeam.DepID + "#tabs-2";

            return View("../Shared/Redirect");
            //return Redirect("/Department/Amend/" + newTeam.DepID + "#tabs-2");
        }
		private void attach_Teams(Team entity)
		{
			this.SendPropertyChanging();
			entity.Contact = this;
		}
 partial void DeleteTeam(Team instance);
 partial void UpdateTeam(Team instance);
 partial void InsertTeam(Team instance);
 //insert
 public void Insert(Team newOrg)
 {
     dataAccess.Teams.InsertOnSubmit(newOrg);
     dataAccess.SubmitChanges();
 }