Example #1
0
        public JsonResult Project_Gallery_InsertUpdate(ProjectGalleryInsertDelete RowInsert)
        {
            RowInsert.Company_Id = 1;
            RowInsert.User_Id    = 1;
            var ResultInsert = new ProjectGalleryInsert();

            string path     = "";
            string filename = null;

            if (RowInsert.picture != null)
            {
                path = Path.Combine(Server.MapPath("~/resources/profileImages"),
                                    Path.GetFileName(RowInsert.picture.FileName));
                RowInsert.picture.SaveAs(path);

                filename = RowInsert.picture.FileName;
            }
            RowInsert.Pj_img_path = path;
            RowInsert.Pj_img_Code = filename;
            using (DAL_CloudRealEstate.SettingMain db = new DAL_CloudRealEstate.SettingMain())
            {
                ResultInsert = db.Project_Gallery_InsertUpdate(RowInsert);
            }

            return(Json(ResultInsert, JsonRequestBehavior.AllowGet));
        }
Example #2
0
        public JsonResult get_Project_Type()
        {
            var ProjectTypeList = new List <fn_tbl_Project_Type_Result>();

            using (DAL_CloudRealEstate.SettingMain db = new DAL_CloudRealEstate.SettingMain())
            {
                ProjectTypeList = db.get_Project_Type();
            }

            return(Json(ProjectTypeList, JsonRequestBehavior.AllowGet));
        }
Example #3
0
        public JsonResult get_CountryMain_Select()
        {
            var CountryMainList = new List <fn_CountryMain_Select_Result>();

            using (DAL_CloudRealEstate.SettingMain db = new DAL_CloudRealEstate.SettingMain())
            {
                CountryMainList = db.get_CountryMain_Select();
            }

            return(Json(CountryMainList, JsonRequestBehavior.AllowGet));
        }
Example #4
0
        public JsonResult get_Project_Type_Option_Select(int Project_TypeId)
        {
            int Company_Id            = 1;
            var ProjectTypeOptionList = new List <fn_tbl_Project_Type_Option_Select_Result>();

            using (DAL_CloudRealEstate.SettingMain db = new DAL_CloudRealEstate.SettingMain())
            {
                ProjectTypeOptionList = db.get_Project_Type_Option_Select(Company_Id, Project_TypeId);
            }

            return(Json(ProjectTypeOptionList, JsonRequestBehavior.AllowGet));
        }
Example #5
0
        public JsonResult get_CityMain_select(int Region_Id)
        {
            int Company_Id   = 1;
            var CityMainList = new List <fn_CityMain_select_Result>();

            using (DAL_CloudRealEstate.SettingMain db = new DAL_CloudRealEstate.SettingMain())
            {
                CityMainList = db.get_CityMain_select(Region_Id, Company_Id);
            }

            return(Json(CityMainList, JsonRequestBehavior.AllowGet));
        }
Example #6
0
        public JsonResult get_Region_select(String Country_Code)
        {
            int Company_Id = 1;
            var RegionList = new List <fn_Region_select_Result>();

            using (DAL_CloudRealEstate.SettingMain db = new DAL_CloudRealEstate.SettingMain())
            {
                RegionList = db.get_Region_select(Country_Code, Company_Id);
            }

            return(Json(RegionList, JsonRequestBehavior.AllowGet));
        }
Example #7
0
        public JsonResult Project_Main_InsertUpdateDelete(fn_tbl_Project_Main_Select_Result RowInsert)
        {
            RowInsert.Company_Id = 1;
            RowInsert.User_Id    = 1;
            var ResultInsert = new ProjectMainInsert();

            using (DAL_CloudRealEstate.SettingMain db = new DAL_CloudRealEstate.SettingMain())
            {
                ResultInsert = db.Project_Main_InsertUpdateDelete(RowInsert);
            }

            return(Json(ResultInsert, JsonRequestBehavior.AllowGet));
        }
Example #8
0
        public JsonResult get_Owner_CompanyProject()
        {
            int Company_Id       = 1;
            int Active           = -1;
            var OwnerCompanyList = new List <fn_tbl_Owner_CompanyProject_Select_Result>();

            using (DAL_CloudRealEstate.SettingMain db = new DAL_CloudRealEstate.SettingMain())
            {
                OwnerCompanyList = db.get_Owner_CompanyProject_Select(Company_Id, Active);
            }

            return(Json(OwnerCompanyList, JsonRequestBehavior.AllowGet));
        }
Example #9
0
        public JsonResult Project_Options_InsertUpdate(ProjectOptionsInsertDelete RowInsert)
        {
            RowInsert.Company_Id = 1;
            RowInsert.User_Id    = 1;
            var ResultInsert = new ProjectOptionsInsert();

            using (DAL_CloudRealEstate.SettingMain db = new DAL_CloudRealEstate.SettingMain())
            {
                ResultInsert = db.Project_Options_InsertUpdate(RowInsert);
            }

            return(Json(ResultInsert, JsonRequestBehavior.AllowGet));
        }