예제 #1
0
        public void SaveUserPosition(UserPosition userPosition)
        {
            var result = _userPositionRepository.GetById(userPosition.Id);

            if (result != null)
            {
                _userPositionRepository.Update(userPosition);
            }
            else
            {
                _userPositionRepository.Create(userPosition);
            }
        }
예제 #2
0
 public async Task <UserPosition> Create(UserPosition userPosition)
 {
     return(await _userPositionRepository.Create(userPosition));
 }