Exemplo n.º 1
0
        public async Task <Ticket> GetTicketAsync(string ticketId, ExpectedResultEnum expectedFacadeResult)
        {
            BllContract.Require(nameof(expectedFacadeResult), expectedFacadeResult, x => x != ExpectedResultEnum.ContractException);
            var ticket = await _dalClient.GetTicketAsync(ticketId, expectedFacadeResult);

            return(ticket);
        }
 public DalContract MapToDal(BllContract entity)
 {
     return(new DalContract
     {
         Id = entity.Id,
         Name = entity.Name,
         BeginDate = entity.BeginDate,
         EndDate = entity.EndDate,
         Lib_id = entity.ContractLib_id != null ? entity.ContractLib_id.Value : 0
     });
 }
        public BllContract MapToBll(DalContract entity)
        {
            BllContract bllEntity = new BllContract
            {
                Id             = entity.Id,
                Name           = entity.Name,
                BeginDate      = entity.BeginDate,
                EndDate        = entity.EndDate,
                ContractLib_id = entity.Lib_id
            };

            return(bllEntity);
        }