// deletes a nanny from the DS accroding to id no. public void DeleteNanny(uint nannyId) { DeleteObjects <Contract>(GetContractsByCondition(x => x.Nanny.Id == nannyId).ToList <Contract>()); DAL.DeleteNanny(nannyId); }