public void DeleteClub(UpdateClubCommand deletedClubCommand, int id) { var repo = new ClubRepository(); var deletedClub = new Club { Name = deletedClubCommand.Name, Address = deletedClubCommand.Address, Phone = deletedClubCommand.Phone, Capacity = deletedClubCommand.Capacity, Description = deletedClubCommand.Description }; repo.DeleteClub(deletedClub, id); }