コード例 #1
0
 public void SetProperties(Acompanhamento acompanhamento)
 {
     ExceptionClass.Exec(string.IsNullOrEmpty(acompanhamento.Nome), "Campo nome é obrigatório");
     this.Nome           = acompanhamento.Nome.Trim();
     this.Data           = this.Id != Guid.Empty ? acompanhamento.Data : DateTime.Now;
     this.StatusCardapio = StatusCardapio.ATIVO;
 }
コード例 #2
0
 public void SetProperties(Mistura mistura)
 {
     this.Nome           = mistura.Nome.Trim();
     this.AcrescimoValor = mistura.AcrescimoValor;
     this.Data           = this.Id != Guid.Empty ? mistura.Data : DateTime.Now;
     this.StatusCardapio = StatusCardapio.ATIVO;
 }
コード例 #3
0
 public void SetProperties(Salada salada)
 {
     this.Nome           = salada.Nome.Trim();
     this.Data           = this.Id != Guid.Empty ? salada.Data : DateTime.Now;
     this.StatusCardapio = StatusCardapio.ATIVO;
 }