Beispiel #1
0
        public ActionResult T_COM_Master_LocationEvt(int[] LocationID, string Action)
        {
            // You have your books IDs on the deleteInputs array
            switch (Action.ToLower())
            {
            case "delete":

                if (LocationID != null && LocationID.Length > 0)
                {
                    int length = LocationID.Length;
                    T_COM_Master_Location objItem;
                    for (int i = 0; i <= length - 1; i++)
                    {
                        objItem = T_COM_Master_LocationManager.GetById(LocationID[i]);
                        if (objItem != null)
                        {
                            T_COM_Master_LocationManager.Delete(objItem);
                        }
                    }
                    return(View(ViewFolder + "list.cshtml", T_COM_Master_LocationManager.GetAll()));
                }
                break;
            }


            return(View("PostFrm"));
        }