public void SaveUserPosition(UserPosition userPosition) { var result = _userPositionRepository.GetById(userPosition.Id); if (result != null) { _userPositionRepository.Update(userPosition); } else { _userPositionRepository.Create(userPosition); } }
public async Task <UserPosition> Update(UserPosition userPosition) { return(await _userPositionRepository.Update(userPosition)); }