public async Task <IActionResult> CheckIn(string id) { if (id == null) { return(View("NoIdFound")); } int decryptedId = Convert.ToInt32(protector.Unprotect(id)); await _checkout.CheckInItemAsync(decryptedId); return(RedirectToAction("Detail", new { id = id })); }