public ActionResult <BaseViewModel <MyUserViewModel> > GetMyUser([CheckGuid] string id) { var result = _productService.GetMyUser(new Guid(id)); this.HttpContext.Response.StatusCode = (int)result.StatusCode; return(result); }
public async Task <ActionResult <BaseViewModel <MyUserViewModel> > > Profile(string include) { var userId = HttpContext.User.FindFirst(ClaimTypes.NameIdentifier).Value; var result = _myUserService.GetMyUser(new Guid(userId), include);// _mapper.Map<MyUserViewModel>(); this.HttpContext.Response.StatusCode = (int)result.StatusCode; return(result); }