Esempio n. 1
0
        public bool RemoveBusinessType()
        {
            string ids = Request["ids"].ToString();
            BusinessTypeContext btc = new BusinessTypeContext();

            return(btc.RemoveBusinessType(ids));
        }
Esempio n. 2
0
        public string GetBusinessTypes()
        {
            BusinessTypeContext btc = new BusinessTypeContext();
            DataTable           bts = btc.GetBusinessTypes();

            return(JsonHelper.DataTableToJSON(bts));
        }
Esempio n. 3
0
        public bool AddBusinessType()
        {
            string name             = Request["name"].ToString();
            BusinessTypeContext btc = new BusinessTypeContext();

            return(btc.AddBusinessType(name));
        }
Esempio n. 4
0
        public string GetBusinessType()
        {
            BusinessTypeContext bc = new BusinessTypeContext();
            DataTable           dt = bc.GetBusinessTypes();

            return(JsonHelper.DataTableToJSON(dt));
        }