Example #1
0
        public async Task <IActionResult> DissociateToStory(int id)
        {
            if (!ModelState.IsValid)
            {
                return(RedirectToAction("Index", "Board"));
            }

            AppUser user = await userManager.GetUserAsync(HttpContext.User);

            bool succesful = await StoryService.DissociateToStory(id, user);

            if (!succesful)
            {
                return(BadRequest("Could not Dissociate story"));
            }

            return(RedirectToAction("Board", "Board"));
        }