public IActionResult EditShelfSize(int?id, StandardShelfSize standardSize)
 {
     if (id != standardSize.StandardShelfId)
     {
         return(NotFound());
     }
     if (ModelState.IsValid)
     {
         try
         {
             ctx.UpdateStandardShelfSize(standardSize);
         }
         catch (DbUpdateConcurrencyException)
         {
             if (!StandardSizeExists(standardSize.StandardShelfId))
             {
                 return(NotFound());
             }
             else
             {
                 throw;
             }
         }
         return(RedirectToAction(nameof(ListAllShelf)));
     }
     return(View(standardSize));
 }
 public void UpdateStandardShelfSize(StandardShelfSize model)
 {
     ctx.Update(model);
     Save();
 }