コード例 #1
0
        public ActionResult NewBuilty(int id = 0, int companyid = 0)
        {
            Builty editBuilty = new Builty();

            BuiltyCRuDViewModel EditBuilty = new BuiltyCRuDViewModel();

            //Callthis Method from VehicleCRudView
            var viewmodel = new BuiltyViewModel();

            if (id != 0)
            {
                editBuilty = EditBuilty.editbuilty(id, companyid);

                /*   viewmodel = new BuiltyViewModel()
                 * {
                 *     Vehicles = vehicles,
                 *     Drivers = drivers,
                 *     builty=editBuilty
                 *
                 * };*/
            }
            var GoodsDetailList = EditBuilty.GoodsDetailList();

            editBuilty.BuiltyDetailList = GoodsDetailList;

            return(View(editBuilty));
        }
コード例 #2
0
        public ActionResult BuiltyDetail(int id = 0, int companyid = 0)
        {
            BuiltyCRuDViewModel BuiltyDetail = new BuiltyCRuDViewModel();

            Builty builtydetail = BuiltyDetail.editbuilty(id, companyid);

            return(View(builtydetail));
        }