public ActionResult _Create([DataSourceRequest]DataSourceRequest request, BizTbl_UserExt model)
        {
            string Msg = "";
            if (ModelState.IsValid)
            {
                try
                {
                    BizTbl_UserRepository modelRepo = new BizTbl_UserRepository();
                    //if (model.UserName != "Admin")
                    //{
                        if (modelRepo.Create(model, ref Msg, this) == false)
                        {
                            return this.Json(new DataSourceResult { Errors = Msg });
                        }
                    //}
                }
                catch (Exception ex)
                {
                    string hostName1 = Dns.GetHostName();
                    string GetUserIPAddress = Dns.GetHostByName(hostName1).AddressList[0].ToString();
                    string PageName = Convert.ToString(Session["PageName"]);
                    //string GetUserIPAddress = GetUserIPAddress1();
                    using (BaseRepository baseRepo = new BaseRepository())
                    {
                        //BizContext BizContext1 = new BizContext();
                        BizApplication.AddError(baseRepo.BizDB, PageName, ex.Message, ex.StackTrace, DateTime.Now, GetUserIPAddress);
                    }
                    Session["PageName"] = "";
                    string error = ErrorHandling.HandleException(ex);
                    return this.Json(new DataSourceResult { Errors = error });
                }
            }

            return Json(new[] { model }.ToDataSourceResult(request, ModelState));
        }
        public ActionResult _Read([DataSourceRequest]DataSourceRequest request, int TableID)
        {
            DataSourceResult result = null;
            try
            {
                BizTbl_UserRepository modelRepo = new BizTbl_UserRepository();
                 result = modelRepo.ReadAll(TableID).ToDataSourceResult(request);
            }
            catch (Exception ex)
            {
                string hostName1 = Dns.GetHostName();
                string GetUserIPAddress = Dns.GetHostByName(hostName1).AddressList[0].ToString();
                string PageName = Convert.ToString(Session["PageName"]);
                //string GetUserIPAddress = GetUserIPAddress1();
                using (BaseRepository baseRepo = new BaseRepository())
                {
                    //BizContext BizContext1 = new BizContext();
                    BizApplication.AddError(baseRepo.BizDB, PageName, ex.Message, ex.StackTrace, DateTime.Now, GetUserIPAddress);
                }
                Session["PageName"] = "";
                string error = ErrorHandling.HandleException(ex);
                return this.Json(new DataSourceResult { Errors = error });
            }

            return Json(result);
        }