public static AgentsModel ToModel(this Agents entity) { return(entity.MapTo <Agents, AgentsModel>()); }