public JsonResult Save_Institute_Details(InstituteMaster _obj)
        {
            bool flag       = false;
            bool flagExists = false;

            try
            {
                InstituteRepository _objRepository = new InstituteRepository();
                string localIP = "?";
                localIP         = Request.ServerVariables["REMOTE_ADDR"].ToString();
                _obj.ModifiedIP = localIP;
                _obj.Edited_by  = Session["User_id"].ToString();
                DataSet _ds = _objRepository.Update_Institute_Details(_obj);
                if (_ds != null)
                {
                    if (_ds.Tables[0].Rows.Count > 0)
                    {
                        if (_ds.Tables[0].Rows[0]["FLAG"].ToString() == "-1")
                        {
                            flagExists = true;
                        }
                        else if (_ds.Tables[0].Rows[0]["FLAG"].ToString() == "1")
                        {
                            flag = true;
                        }
                    }
                }
            }
            catch (System.Exception)
            {
                throw;
            }
            return(Json(new
            {
                flag = flag,
                flagExists = flagExists
            },
                        JsonRequestBehavior.AllowGet
                        ));
        }