public async Task <IActionResult> MarkDone(Guid id) { if (id == Guid.Empty) { return(RedirectToAction("Index")); } var curUsr = await _usrMgr.GetUserAsync(User); if (curUsr == null) { return(Challenge()); } var successful = await _planeSrvc.MarkDoneAsync(id, curUsr); if (!successful) { return(BadRequest("Could not mark item as done.")); } return(RedirectToAction("Index")); }