Exemplo n.º 1
0
        public IHttpActionResult GetByUser(int id)
        {
            int pageSize = 5;
            var identity = (ClaimsIdentity)User.Identity;
            var name     = identity.Claims.Where(x => x.Type == ClaimTypes.Name).Single().Value;

            return(Ok(_business.GetByUser(name, pageSize, id)));
        }