Example #1
0
        public ActionResult Form(int height, int width, int length, int weight)
        {
            Parcel newParcel = new Parcel(height, width, length, weight);
            int    volume    = newParcel.GetVolume();
            double cost      = newParcel.GetCost();

            Parcel.ClearParcel();
            newParcel = new Parcel(height, width, length, weight, volume, cost);
            return(RedirectToAction("Receipt"));
        }