protected TEntity MapToEntity(TDTO dto) { return(Mapper.Map <TDTO, TEntity>(dto)); }
public async Task <App.DTO.Identity.AppRole> GetByRoleNameAsync(string roleName) { return(Mapper.Map <AppRole, App.DTO.Identity.AppRole>( await DbSet.FirstOrDefaultAsync(appRole => appRole.Name.Equals(roleName)))); }