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

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

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

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

            return(JsonHelper.DataTableToJSON(dt));
        }