public IActionResult EditStatus(int id, Status status) { if (id != status.Id) { return(ViewBag.Message = "Invalid Id"); } _db.EditStatus(status); return(RedirectToAction(nameof(Status))); }