예제 #1
0
        public async Task <IEnumerable <ItemModel> > GetItem(int itemID, int userID)
        {
            ItemDE itemDE = new ItemDE();
            var    item   = await itemDE.GetItemWithPhotos(itemID, userID);

            return(item);
        }
예제 #2
0
 public async Task UpdateClickCount([FromBody] int itemID)
 {
     ItemDE itemDE = new ItemDE();
     await itemDE.IncreaseClickCount(itemID);
 }
예제 #3
0
 public async Task DeleteItem(int itemID)
 {
     ItemDE itemDE = new ItemDE();
     await itemDE.ItemDelete(itemID);
 }
예제 #4
0
 public async Task UpdateItem([FromBody] ItemModel item)
 {
     ItemDE itemDE = new ItemDE();
     await itemDE.AddOrEditItem(item);
 }
예제 #5
0
 public async Task MakeProfilePhoto([FromBody] ItemPhotoModel itemPhoto)
 {
     ItemDE itemDE = new ItemDE();
     await itemDE.MakeProfilePhoto(itemPhoto.ItemID, itemPhoto.Path);
 }
예제 #6
0
        public async Task <IEnumerable <ItemModel> > GetAllItems()
        {
            ItemDE itemDE = new ItemDE();

            return(await itemDE.GetItems());
        }