public void Add(FormCollection collection)
        {
            try
            {

                memberOf membership = new memberOf();
                UpdateModel(membership);
                membership.dateAdded = DateTime.Now;
                db.memberOfs.InsertOnSubmit(membership);
                db.SubmitChanges();

            }
            catch(System.Exception e)
            {
                Response.Write("Error: " + e.Message);
            }
        }
		private void detach_memberOfs(memberOf entity)
		{
			this.SendPropertyChanging();
			entity.resume = null;
		}
		private void attach_memberOfs(memberOf entity)
		{
			this.SendPropertyChanging();
			entity.resume = this;
		}
 partial void DeletememberOf(memberOf instance);
 partial void UpdatememberOf(memberOf instance);
 partial void InsertmemberOf(memberOf instance);