示例#1
0
        public ActionResult <BaseViewModel <MyUserViewModel> > GetMyUser([CheckGuid] string id)
        {
            var result = _productService.GetMyUser(new Guid(id));

            this.HttpContext.Response.StatusCode = (int)result.StatusCode;

            return(result);
        }
示例#2
0
        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);
        }