public ActionResult UpdateConfirmed(StorageShipment model)
 {
     using (var repo = new Repository <StorageShipment>())
     {
         if (repo.Update(model))
         {
             repo.Save();
         }
         else
         {
             return(HttpNotFound());
         }
     }
     return(RedirectToAction("Sendings"));
 }
 public ActionResult Add(StorageShipment model)
 {
     using (var repo = new Repository <StorageShipment>())
     {
         if (repo.Add(model))
         {
             repo.Save();
         }
         else
         {
             return(HttpNotFound());
         }
     }
     return(RedirectToAction("OpenStorage", "Storage",
                             new
     {
         id = context.Resources_Storages.Find(model.resourceStorageID).storageID
     }
                             ));
 }