/// <summary> /// Converts the domain model into an entity. /// </summary> /// <returns>The entity.</returns> /// <param name="mob">Mob.</param> internal static MobEntity ToEntity(this MobDefinition mob) { MobEntity mobEntity = new MobEntity { Id = mob.Id, Name = mob.Name, Description = mob.Description }; return(mobEntity); }
/// <summary> /// Converts the entity into a domain model. /// </summary> /// <returns>The domain model.</returns> /// <param name="mobEntity">Mob entity.</param> internal static MobDefinition ToDomainModel(this MobEntity mobEntity) { MobDefinition mob = new MobDefinition { Id = mobEntity.Id, Name = mobEntity.Name, Description = mobEntity.Description }; return(mob); }