Compare commits
4
Commits
1.55.0
...
e7a798b5e9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e7a798b5e9 | ||
|
|
494b806744 | ||
|
|
41b6b71b31 | ||
|
|
0702caa42d |
@@ -305,7 +305,6 @@ public sealed class ProductService(IDbContextFactory<MidrandBooksDbContext> cont
|
||||
await using var context = await contextFactory.CreateDbContextAsync(cancellationToken);
|
||||
|
||||
var product = await context.Products
|
||||
.Include(i => i.Price)
|
||||
.AsNoTracking().FirstOrDefaultAsync(p => p.Id == productId, cancellationToken);
|
||||
|
||||
return product is null
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace LiteCharms.Features.Models;
|
||||
|
||||
public class SearchState
|
||||
{
|
||||
public string Query { get; private set; } = string.Empty;
|
||||
|
||||
public event Action? OnSearchSubmitted;
|
||||
|
||||
public void UpdateQuery(string newQuery) => Query = newQuery;
|
||||
|
||||
public void SubmitSearch() => OnSearchSubmitted?.Invoke();
|
||||
}
|
||||
Reference in New Issue
Block a user