Ejemplo n.º 1
0
        public IHttpActionResult QueryDept(int orgId)
        {
            var request = new BaseRequest <DeptFilter>();

            request.Data.OrganizationID = orgId;
            var response = servicedept.QueryDept(request);

            return(Ok(response));
        }
Ejemplo n.º 2
0
        public IHttpActionResult Query([FromUri] BaseRequest <DeptFilter> request)
        {
            if (request == null)
            {
                request = new BaseRequest <DeptFilter>();
            }
            request.Data.OrganizationID = SecurityHelper.CurrentPrincipal.OrgId;
            var response = service.QueryDept(request);

            return(Ok(response));
        }