예제 #1
0
        public ActionResult List()
        {
            Parcel newpack = new Parcel();

            newpack.Length = float.Parse((Request.Form["parcelL"]));
            newpack.Width  = float.Parse((Request.Form["parcelW"]));
            newpack.Height = float.Parse((Request.Form["parcelH"]));
            newpack.CalcVolume();
            newpack.Save();
            List <Parcel> allPackages = Parcel.GetAll();

            return(View("List", allPackages));
        }