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

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

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

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

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