Exemple #1
0
 public ActionResult PackageTypeCreateEdit(package_type package_type)
 {
     result              = packageTypeUtill.PackageTypeCreateEdit(package_type);
     ViewBag.Title       = package_type == null ? "Package Type Create" : "Package Type Edit";
     ViewBag.action_name = STUtil.GetListAllActionByController("");
     return(Json(result));
 }
Exemple #2
0
        public ActionResult PackageType(string id)
        {
            STUtil.SetSessionValue(UserInfo.pageTitle.ToString(), "Package Type");
            package_type c = new package_type();

            if (id != null && id != "")
            {
                c = db.package_type.Find(Convert.ToInt32(id));
            }
            return(View(c));
        }