public ActionResult T_CMS_InterfaceLacviet_WorkingHoursEvt(int[] WorkingId, string Action) { // You have your books IDs on the deleteInputs array switch (Action.ToLower()) { case "delete": if (WorkingId != null && WorkingId.Length > 0) { int length = WorkingId.Length; T_CMS_InterfaceLacviet_WorkingHours objItem; for (int i = 0; i <= length - 1; i++) { objItem = T_CMS_InterfaceLacviet_WorkingHoursManager.GetById(WorkingId[i]); if (objItem != null) { T_CMS_InterfaceLacviet_WorkingHoursManager.Delete(objItem); } } return(View(ViewFolder + "list.cshtml", T_CMS_InterfaceLacviet_WorkingHoursManager.GetAll())); } break; } return(View("PostFrm")); }
/// <summary> /// use for setting up default value /// </summary> /// <returns></returns> public ActionResult Update(int WorkingId, string TargetID = "T_CMS_InterfaceLacviet_WorkingHourslist") { T_CMS_InterfaceLacviet_WorkingHours objItem = T_CMS_InterfaceLacviet_WorkingHoursManager.GetById(WorkingId); objItem.TargetDisplayID = TargetID; return(View(ViewFolder + "Create.cshtml", objItem)); }
public ActionResult Get(int WorkingId, string action) { T_CMS_InterfaceLacviet_WorkingHours objItem = T_CMS_InterfaceLacviet_WorkingHoursManager.GetById(WorkingId); return(Content(JsonConvert.SerializeObject(objItem), "application/json")); }
public ActionResult Get(int WorkingId) { T_CMS_InterfaceLacviet_WorkingHours objItem = T_CMS_InterfaceLacviet_WorkingHoursManager.GetById(WorkingId); return(View(objItem)); }