Beispiel #1
0
        public async Task <IActionResult> ManageIgnore([FromBody] ManageIgnoreViewModel model)
        {
            var success = await _soStringService.ManageIgnoreAsync(
                model.StringId,
                model.Ignored,
                User.GetClaim <int>(ClaimType.Id),
                User.GetClaim <UserType>(ClaimType.UserType));

            if (success)
            {
                return(new EmptyResult());
            }

            return(BadRequest());
        }