public ActionResult T_COM_Master_EmployeeEvt(int[] EmployeeCode, string Action)
        {
            // You have your books IDs on the deleteInputs array
            switch (Action.ToLower())
            {
            case "delete":

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


            return(View("PostFrm"));
        }
 public ActionResult Create(T_COM_Master_Employee model)
 {
     try
     {
         if (ModelState.IsValid)
         {
             //  model.CreatedUser = CurrentUser.UserName;
             if (model.EmployeeCode != 0)
             {
                 //get default value
                 //	T_COM_Master_Employee b = T_COM_Master_EmployeeManager.GetById(model.EmployeeCode);
                 T_COM_Master_EmployeeManager.Update(model);
             }
             else
             {
                 // TODO: Add insert logic here
                 //	 model.CreatedDate = SystemConfig.CurrentDate;
                 T_COM_Master_EmployeeManager.Add(model);
             }
             return(View(ViewFolder + "list.cshtml", T_COM_Master_EmployeeManager.GetAll()));
         }
     }
     catch
     {
         return(View(model));
     }
     return(View(model));
 }
        /// <summary>
        /// ExportExcel File
        /// </summary>
        /// <returns></returns>
        public string ExportExcel()
        {
            T_COM_Master_EmployeeCollection collection = T_COM_Master_EmployeeManager.GetAll();
            DataTable dt       = collection.ToDataTable <T_COM_Master_Employee>();
            string    fileName = "T_COM_Master_Employee_" + SystemConfig.CurrentDate.ToString("MM-dd-yyyy");

            string[] RemoveColumn = { "CompanyID", "TargetDisplayID", "ReturnDisplay", "TotalRecord", "CreatedUser", "CreatedDate" };
            for (int i = 0; i < RemoveColumn.Length; i++)
            {
                if (dt.Columns.Contains(RemoveColumn[i]))
                {
                    dt.Columns.Remove(RemoveColumn[i]);
                }
            }
            FileInputHelper.ExportExcel(dt, fileName, "T_COM_Master_Employee List", false);
            return(fileName);
        }
        public ActionResult list()
        {
            T_COM_Master_EmployeeCollection collection = T_COM_Master_EmployeeManager.GetAll();

            return(View(ViewFolder + "list.cshtml", collection));
        }