Exemplo n.º 1
0
        public Organization Execute(OrganizationByIdQueryParams queryParams)
        {
            var unitOfWork = _serviceFactory.GetService<IUnitOfWork>();

            return unitOfWork.Organizations.Fetch().Where(x => x.Id == queryParams.OrganizationId).SingleOrDefault();
        }
Exemplo n.º 2
0
        public Organization Execute(OrganizationByIdQueryParams queryParams)
        {
            var unitOfWork = _serviceFactory.GetService <IUnitOfWork>();

            return(unitOfWork.Organizations.Fetch().Where(x => x.Id == queryParams.OrganizationId).SingleOrDefault());
        }