public static async Task <BudgetClass> FindByNameAsync(this IEntityQuery <BudgetClass> repository, string name) { return(await repository.FirstOrDefaultAsync(bc => bc.Name == name.Trim())); }
public static async Task <BudgetClass> FindByIdAsync(this IEntityQuery <BudgetClass> repository, int id) { return(await repository.FirstOrDefaultAsync(bc => bc.Id == id)); }