public async Task DeleteMemberFromFamilyAsync(string streetName, int houseNumber, string memberType, int memberId) { switch (memberType) { case "adults": await dataService.DeleteAdultFromFamilyAsync(streetName, houseNumber, memberId); break; case "children": await dataService.DeleteChildFromFamilyAsync(streetName, houseNumber, memberId); break; case "pets": await dataService.DeletePetFromFamilyAsync(streetName, houseNumber, memberId); break; } }