예제 #1
0
        public async Task <ActionResult> RemoveFromCategory(Guid uid, Guid categoryUid)
        {
            await Shopy.RemoveProductFromCategory(uid, categoryUid);

            return(Json(true));
        }
예제 #2
0
        public async Task <ActionResult> Delete(Guid uid)
        {
            await Shopy.DeleteProduct(uid);

            return(RedirectToAction("List"));
        }
예제 #3
0
        public async Task <ActionResult> AddToCategory(Guid uid, Guid categoryUid)
        {
            await Shopy.AddProductToCategory(uid, categoryUid);

            return(Json(true));
        }