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

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

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

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

            return(JsonHelper.DataTableToJSON(dt));
        }