Exemplo n.º 1
0
 public RateChoice UpdateChoice(RateChoice rateChoice)
 {
     if (rateChoice.Id != 0)
     {
         return(ChoiceRepository.Update(rateChoice.Map <DbRateChoice>()).Map <RateChoice>());
     }
     return(ChoiceRepository.Insert(rateChoice.Map <DbRateChoice>()).Map <RateChoice>());
 }
Exemplo n.º 2
0
 public RateChoice InsertChoice(RateChoice rateChoice)
 {
     return(ChoiceRepository.Insert(rateChoice.Map <DbRateChoice>()).Map <RateChoice>());
 }