public IHttpActionResult Get(string id) { VerifyGuidType(id); var user = _usersDomain.Get(new Guid(id)); if (user == null) { ThrowNotFound(id); } var userDto = _mapper.Map <Entity.User, UserDto>(user); return(Ok(userDto)); }
public IActionResult Details(string id) { return(View(_usersDomain.Get(id))); }
public UserDto Get(string id) { return(_usersDomain.Get(id)); }