public async Task <IActionResult> Add([FromForm] EnsureTaste taste)
        {
            // wait until operation is finished before letting the user continue.
            // discar (_ = ) to prevent unwanted messages from the compiler/analyzer
            _ = await _ensureService.LogAsync(User.GetId(), taste);

            return(RedirectToAction("Logs"));
        }
 public async Task <ActionResult <EnsureLog> > AddLog(EnsureTaste taste)
 {
     return(await _ensureService.LogAsync(UserExtensions.GetId(User), taste));
 }