public LabelTranslation DaoToEntity(LabelTranslationDao dao) { LabelTranslation entity = new LabelTranslation { Id = dao.Id, RefLabelId = converter.DaoToEntity(dao.RefLabelId), Language = dao.Language, TranslationValue = dao.TranslationValue }; return(entity); }
public Merchendise DaoToEntity(MerchendiseDao dao) { Merchendise entity = new Merchendise { Id = dao.Id, Description = dao.Description, Name = dao.Name, Price = dao.Price, Type = dao.Type, RefLabelId = converter.DaoToEntity(dao.RefLabelId), HasStock = dao.HasStock }; return(entity); }
public Appointment DaoToEntity(AppointmentDao dao) { Appointment entity = new Appointment { Id = dao.Id, DateTimeEnd = dao.DateTimeEnd, DateTimeStart = dao.DateTimeStart, Description = dao.Description, Price = dao.Price, Type = dao.Type, RefLabelId = _labelConverter.DaoToEntity(dao.RefLabelId), RefLocationId = _locationConverter.DaoToEntity(dao.RefLocationId) }; return(entity); }