public async Task <Schema> GetSchemaAsync(string name) { var dbschema = await Schemas.FirstOrDefaultAsync(s => s.Name == name); if (dbschema == null) { return(null); } return(Mapper.Map <Schema>(dbschema)); }