public ActionResult GetCategoryForDDL()
 {
     try
     {
         var data = CustomModel.GetCategoryForDDL();
         return(Json(new { success = true, data = data }));
     }
     catch (Exception e)
     {
         return(Json(new { success = false, message = e.Message }));
     }
     finally { }
 }
        //===============================================Import export==================================================

        //===============================================Openpopup======================================================


        #endregion
        #region Form
        public ActionResult FormPopup(string entryid, string entrykey, string redirectbyajax)
        {
            IDbConnection dbConn = new OrmliteConnection().openConn();
            var           dict   = new Dictionary <string, object>();

            dict["activestatus"] = CustomModel.GetActiveStatus();
            dict["listcategory"] = CustomModel.GetCategoryForDDL();
            dbConn.Close();

            //set parameter

            dict["redirectbyajax"] = redirectbyajax;
            ViewBag.entryid        = string.IsNullOrEmpty(entryid) ? "0" : entryid;
            ViewBag.entrykey       = string.IsNullOrEmpty(entrykey) ? "0" : entrykey;
            return(View("ProductManagementForm", dict));
        }