public ActionResult CreateSubcategory(Subcategory subcategory)
        {
            var rep = new SubcategoryRepository();
            rep.Create(subcategory);

            return RedirectToAction("Group");
        }
 partial void DeleteSubcategory(Subcategory instance);
 partial void UpdateSubcategory(Subcategory instance);
 partial void InsertSubcategory(Subcategory instance);
		private void detach_Subcategory(Subcategory entity)
		{
			this.SendPropertyChanging();
			entity.Category = null;
		}
		private void attach_Subcategory(Subcategory entity)
		{
			this.SendPropertyChanging();
			entity.Category = this;
		}