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