/// <summary> /// Maps all the non-primary key and tracking properties of a <see cref='Altask.Data.Dto.TaskType'/> object to a <see cref='Altask.Data.Model.TaskType'/> object. /// </summary> public static Altask.Data.Model.TaskType FromDto(this Altask.Data.Model.TaskType model, Altask.Data.Dto.TaskType entity) { model.Active = entity.Active; model.Name = entity.Name; model.Description = entity.Description; model.IsSchedulable = entity.IsSchedulable; model.Value = entity.Value; model.System = entity.System; return(model); }
/// <summary> /// Maps a <see cref='Altask.Data.Model.TaskType'/> object to a <see cref='Altask.Data.Dto.TaskType'/> object. /// </summary> /// <param name="includeLogs">Indicates whether to load any logs associated with the object when mapping.</param> public static Altask.Data.Dto.TaskType ToDto(this Altask.Data.Model.TaskType entity, bool includeLogs = false) { var dto = new Altask.Data.Dto.TaskType(); dto.Id = entity.Id; dto.Active = entity.Active; dto.Name = entity.Name; dto.Description = entity.Description; dto.IsSchedulable = entity.IsSchedulable; dto.Value = entity.Value; dto.System = entity.System; return(dto); }