Exemplo n.º 1
0
        public async Task <IActionResult> CreateClaim([FromBody] ClaimNewModel objInput)
        {
            //var IsValidClaim = HttpContext.ValidatePermission("2");
            //if (!IsValidClaim)
            //    return Unauthorized("you don't have permission");


            var blUser = await _userManager.CreateClaim(objInput);

            if (blUser.Status == HttpStatusCode.OK)
            {
                return(Ok(blUser));
            }
            else
            {
                return(BadRequest(blUser));
            }
        }