Example #1
0
        private object GetTechnicians(Technicians request)
        {
            ApiUser hdUser = request.ApiUser;
            var     _cfg   = new bigWebApps.bigWebDesk.Config(hdUser.OrganizationId, hdUser.InstanceId);

            return(request.FilteredResult <UserAccount>(UserAccounts.FindUsers(hdUser.OrganizationId, hdUser.DepartmentId, hdUser.UserId, _cfg.AccountManager, _cfg.LocationTracking, request.search, request.firstname, request.lastname, request.email, "notuser", _cfg.UnassignedQue)));
            //return request.FilteredResult<UserAccount>(UserAccounts.Technicians(hdUser.OrganizationId, hdUser.DepartmentId));
        }
Example #2
0
        public object Any(Users request)
        {
            ApiUser hdUser = request.ApiUser;

            if (request.id > 0)
            {
                return(UserAccounts.GetUser(hdUser.OrganizationId, hdUser.DepartmentId, request.id));
            }
            return(UserAccounts.FindUsers(hdUser.OrganizationId, hdUser.DepartmentId, hdUser.UserId, request.firstname, request.lastname, request.email, request.page, request.limit));
        }
Example #3
0
        private object GetUsers(Users request)
        {
            ApiUser hdUser = request.ApiUser;

            if (request.id > 0)
            {
                return(UserAccounts.GetUser(hdUser.OrganizationId, hdUser.DepartmentId, request.id));
            }
            var _cfg = new bigWebApps.bigWebDesk.Config(hdUser.OrganizationId, hdUser.InstanceId);

            //v3
            //if (!string.IsNullOrEmpty(request.query))
            //{
            //    request.search = request.query;
            //}
            return(request.FilteredResult <UserAccount>(UserAccounts.FindUsers(hdUser.OrganizationId, hdUser.DepartmentId, hdUser.UserId, _cfg.AccountManager, _cfg.LocationTracking, request.search, request.firstname, request.lastname, request.email, request.role, _cfg.UnassignedQue)));
        }