Exemplo n.º 1
0
        public DataResultArgs <PaymentTypeEntity> Get_PaymentTypeWithId(int id)
        {
            DataProcess.ControlAdminAuthorization();

            DataResultArgs <List <PaymentTypeEntity> > resultSet = Get_PaymentType(new SearchEntity()
            {
                IsActive = true, IsDeleted = false
            });

            DataResultArgs <PaymentTypeEntity> result = new DataResultArgs <PaymentTypeEntity>();

            EntityHelper.CopyDataResultArgs <PaymentTypeEntity>(resultSet, result);

            result.Result = resultSet.Result.FirstOrDefault(o => o.Id == id);

            return(result);
        }