Exemplo n.º 1
0
        public async Task <IActionResult> Create(string id, string text, Query query)
        {
            query.Date     = DateTime.Now;
            query.Resolved = false;
            AppUser user = await _userManager.FindByIdAsync(id);

            query.User = user;
            query.Text = text;
            await _queries.CreateQueryAsync(query);

            return(RedirectToAction("Index", "AppUserPrizes"));
        }