public async Task <ActionResult> Sell(int lotId, int betId) { var result = await _lotService.SellLot(lotId, betId); if (!result.Succedeed) { TempData["Error"] = "Lot not sold"; return(View("NotFound", "Errors")); } TempData["Success"] = "Lot sold successfully"; return(RedirectToAction("Details", "Lots", new { id = lotId })); }