Beispiel #1
0
        public ActionResult Delete([FromRoute] int id)
        {
            var identity = HttpContext.User.Identity as ClaimsIdentity;
            var userId   = identity.Claims.ToList()[0].Value;

            _handler.Delete(int.Parse(userId), id);
            return(Ok());
        }