using DataDomain; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace StockDAL.Interface { public interface IStockRepository { // IEnumerable GetAllRemainingStocks(); IEnumerable GetAllRemainingStocks(int personId = 0); IEnumerable GetAllStocks(); StockMember GetStockMember(int stockMemberId); void InsertMany(List stockMembers); LatestSoldStock LatestSell(string StockName); void RemoveAllStocks(); void RestoreStockMembers(List stockMembers); void SaveStockMember(StockMember stockMember); void UpdateActualForSell(int id, int sellAmount, decimal sellPrice, DateTime sellDate); void UpdateActualPrice(int id, decimal price); IEnumerable GetStocksGroupedPerPerson(int persId); IEnumerable GetStocksGroupedAllPersons(); List GetStockNames(); IEnumerable GetGroupedStock(string stock); StockGroupModel SaveStockGroup(StockGroupModel stockGroup); bool EmptyStockGroups(); } }