public UserAddOrUpdateResponseDto AddOrUpdate(UserAddOrUpdateRequestDto request)
        {
            var entity = _repository.GetAll()
                         .FirstOrDefault(x => x.Id == request.Id && x.IsDeleted == false);

            if (entity == null)
            {
                _repository.Add(entity = new User());
            }
            entity.Name = request.Name;
            _uow.SaveChanges();
            return(new UserAddOrUpdateResponseDto(entity));
        }
 public IHttpActionResult Update(UserAddOrUpdateRequestDto dto)
 {
     return(Ok(_userService.AddOrUpdate(dto)));
 }