InventoryManager / Interfaces / ICollections.cs
ICollections.cs
Raw
using InventoryManager.Models;
using System.Collections.Generic;
using InventoryManager.Tools;

namespace InventoryManager.Interfaces
{
    public interface ICollections
    {
        PaginatedList<Collections> GetItems(string SortProperty, SortOrder sortOrder, string SearchText = "", int pageIndex = 1, int pageSize = 5);
        Collections GetItem(int id);
        Collections Create(Collections item);
        Collections Edit(Collections item);
        Collections Delete(Collections item);

        public bool IsItemUnique(string name);
        public bool IsItemUnique(string name, int id);
    }
}