public void TestItemDetails() { try { TeaShopRepo shopRepo = new TeaShopRepo(); TeaShopVM itemLst = shopRepo.GetDetailsById(35); } catch (Exception e) { } }
public void DeleteDetails() { try { TeaShopRepo shopRepo = new TeaShopRepo(); shopRepo.DeleteDetails(35); } catch (Exception e) { } }
public void TestDetails() { try { TeaShopRepo shopRepo = new TeaShopRepo(); //int[] arr = { 1, 2, 3, 4, 5 }; IEnumerable <TeaShopVM> itemLst = shopRepo.GetDetails(); itemLst = itemLst.Take(1); }catch (Exception e) { } }