public JsonResult saveEngin(string EngineUrl,
                                    int HowManyResults,
                                    string EngineName,
                                    string EngineNameUpdt,
                                    bool FullUrl,
                                    string ReturnUrlAfter,
                                    string ReturnUrlBefor,
                                    string SearchUrl,
                                    bool isUpdate)
        {
            try
            {
                //EngineName,EngineUrl,EngineUrlHttp,EngineUrlHttps,HowManyResults,SearchUrl,
                //ReturnFullUrl, ReturnUrlAfter, ReturnUrlBefor

                SearchEngine se = new SearchEngine();
                se.EngineUrl      = EngineUrl;
                se.HowManyResults = HowManyResults;
                se.SearchUrl      = EngineUrl + SearchUrl;
                se.ReturnFullUrl  = FullUrl;
                se.ReturnUrlAfter = ReturnUrlAfter;
                se.ReturnUrlBefor = ReturnUrlBefor;

                if (!isUpdate)
                {
                    se.Name = EngineName;
                    SearchEngine.AddNewSearchEngine(se);
                }
                else
                {
                    se.Name = EngineNameUpdt;
                    SearchEngine.EditSearchEngine(se);
                }
                //EditSearchEngine

                return(Json("", JsonRequestBehavior.AllowGet));
            }
            catch (Exception er)
            {
                Response.StatusCode = 500;
                return(Json(er.Innerexception().Message, JsonRequestBehavior.AllowGet));
            }
        }