delete unnecessary service for shoppinglist
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
namespace Francesco.Recipes.World.Services.ShoppingList
|
||||
{
|
||||
public interface IShoppingListService
|
||||
{
|
||||
Task<int> GetShoppingListRecipesCountAsync(Guid shoppingListId);
|
||||
}
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
namespace Francesco.Recipes.World.Services.ShoppingList
|
||||
{
|
||||
using Francesco.Recipes.World.Data;
|
||||
using Francesco.Recipes.World.Repositories.ShoppingList;
|
||||
|
||||
public class ShoppingListService
|
||||
{
|
||||
private readonly FrancescosRecipesWorldDbContext _context;
|
||||
private readonly IShoppingListRepository _shoppingListRepository;
|
||||
|
||||
public ShoppingListService(FrancescosRecipesWorldDbContext context, IShoppingListRepository shoppingListRepository)
|
||||
{
|
||||
_context = context;
|
||||
_shoppingListRepository = shoppingListRepository;
|
||||
}
|
||||
|
||||
public async Task<int> CountRecipeLinkedToShoppingListAsync(Guid shoppingListId)
|
||||
{
|
||||
return await _shoppingListRepository.GetShoppingListRecipeCountAsync(shoppingListId);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user