예제 #1
0
        public List <get_site_Result> DeleteAdminSite([FromBody] siteInput site_Result)
        {
            new digimarketEntities1().delete_site(site_Result.site_url, site_Result.email);

            List <get_site_Result> AdminSites = new List <get_site_Result>();

            using (var data = new digimarketEntities1().get_site(site_Result.email))
            {
                AdminSites = data.ToList <get_site_Result>();
            }
            return(AdminSites);
        }
예제 #2
0
        public List <get_site_Result> AddAdminSite([FromBody] siteInput site_Result)
        {
            new digimarketEntities1().add_site(site_Result.site_url, site_Result.site_name, site_Result.ga_id, site_Result.email, site_Result.custom);

            List <get_site_Result> AdminSites = new List <get_site_Result>();

            using (var data = new digimarketEntities1().get_site(site_Result.email))
            {
                AdminSites = data.ToList <get_site_Result>();
            }
            return(AdminSites);
        }