public void AddGroup(Groups group)
 {
     using (var groupsContext = new GroupsContext())
     {
         groupsContext.Entry(group).State = System.Data.Entity.EntityState.Added;
         groupsContext.SaveChanges();
     }
 }
        public string AddGroup(string weight, string belt, string gender)
        {
            var groupContext = new GroupsContext();
            var sexMale = gender.Equals("true") ? true : false;
            Groups newGroup = new Groups(Int32.Parse(weight), sexMale, belt, 3);

            groupContext.Groups.Add(newGroup);
            groupContext.SaveChanges();

            var gen = gender.Equals("true") ? "muz" : "zena";

            return gen + " - " + belt + " - " + weight;
        }