Ejemplo n.º 1
0
 public ActionResult DateFormatCreateEdit(date_format date_format)
 {
     result              = dateFormatUtil.CreateEditDateFormat(date_format);
     ViewBag.Title       = date_format == null ? "DateFormat Create" : "DateFormat Edit";
     ViewBag.action_name = STUtil.GetListAllActionByController("");
     return(Json(result));
 }
Ejemplo n.º 2
0
        public ActionResult DateFormatIndex(string id)
        {
            STUtil.SetSessionValue(UserInfo.pageTitle.ToString(), "Date Format");
            date_format c = new date_format();

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

            return(View(c));
        }