public async Task <IEnumerable <ItemModel> > GetItem(int itemID, int userID) { ItemDE itemDE = new ItemDE(); var item = await itemDE.GetItemWithPhotos(itemID, userID); return(item); }
public async Task UpdateClickCount([FromBody] int itemID) { ItemDE itemDE = new ItemDE(); await itemDE.IncreaseClickCount(itemID); }
public async Task DeleteItem(int itemID) { ItemDE itemDE = new ItemDE(); await itemDE.ItemDelete(itemID); }
public async Task UpdateItem([FromBody] ItemModel item) { ItemDE itemDE = new ItemDE(); await itemDE.AddOrEditItem(item); }
public async Task MakeProfilePhoto([FromBody] ItemPhotoModel itemPhoto) { ItemDE itemDE = new ItemDE(); await itemDE.MakeProfilePhoto(itemPhoto.ItemID, itemPhoto.Path); }
public async Task <IEnumerable <ItemModel> > GetAllItems() { ItemDE itemDE = new ItemDE(); return(await itemDE.GetItems()); }