public bool SetParent(int id, int? parentId) { var district = uOW.DistrictRepo.GetByID(id); district.ParentId = parentId; uOW.DistrictRepo.Update(district); uOW.Save(); return true; }