예제 #1
0
        public List <TotalPointAndPriceDTO> GetTotalPriceReportDTOs(int year)
        {
            TotalPointAndPriceRepository repository         = new TotalPointAndPriceRepository();
            List <TotalPointAndPriceDTO> RTotalPriceReports = repository.SW_GetTotalPriceReports(year).ToList();

            return(RTotalPriceReports);
        }
예제 #2
0
        public BaseOutput GetUserAccountingInfo(string username, out UserAccountingDTO itemOut)
        {
            BaseOutput baseOutput;

            itemOut = null;
            try
            {
                TotalPointAndPriceRepository pointAndPriceRepository = new TotalPointAndPriceRepository();
                var userAccountingInfo = pointAndPriceRepository.GetUserAccountingInfo(username);
                itemOut = userAccountingInfo;
                return(baseOutput = new BaseOutput(true, BOResultTypes.Success.GetHashCode(), BOBaseOutputResponse.SuccessResponse, ""));
            }
            catch (Exception ex)
            {
                return(baseOutput = new BaseOutput(false, BOResultTypes.Danger.GetHashCode(), BOBaseOutputResponse.DangerResponse, ex.Message));
            }
        }