public ApiFrequency ConvertToApiEntity(DalFrequency dataEntity) { var result = new ApiFrequency(dataEntity.Id, dataEntity.Text); result.IsDirty = dataEntity.IsDirty; result.IsMarkForDeletion = dataEntity.IsMarkForDeletion; return(result); }
public Frequency ConvertToBusinessLogicEntity(DalFrequency dataEntity) { var result = new Frequency(dataEntity.Id, dataEntity.Text) { IsDirty = false }; return(result); }
public DalFrequency ConvertToDALEntity(Frequency businessEntity) { var result = new DalFrequency(businessEntity.Id, businessEntity.Text, businessEntity.Id); return(result); }