public void UpdateClub(UpdateClubCommand updatedClubCommand, int id) { var repo = new ClubRepository(); var updatedClub = new Club { Name = updatedClubCommand.Name, Address = updatedClubCommand.Address, Phone = updatedClubCommand.Phone, Capacity = updatedClubCommand.Capacity, Description = updatedClubCommand.Description }; repo.UpdateClub(updatedClub, id); }