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; }
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; }
public void SetProperties(Salada salada) { this.Nome = salada.Nome.Trim(); this.Data = this.Id != Guid.Empty ? salada.Data : DateTime.Now; this.StatusCardapio = StatusCardapio.ATIVO; }