Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public IActionResult GetUserBy(int id)
- {
- var user = _userRepository.GetBy(id);
- var userResponse = new UserResponse()
- {
- Name = user.Name
- };
- return Ok(userResponse);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement