public async Task <PropertyOwnership> Create(PropertyOwnership entity) { var getPropertyOwnership = _propertyOwnershipRepository.FirstOrDefault(Po => Po.Id == entity.Id); if (getPropertyOwnership != null) { throw new UserFriendlyException("Property Ownership is already exist "); } else { return(await _propertyOwnershipRepository.InsertAsync(entity)); } }
public void Update(PropertyOwnership entity) { _propertyOwnershipRepository.Update(entity); }