public string DeleteWishlist([FromBody] Models.Wishlist wishlist) { var str = string.Empty; try { EFModels.Wishlist wishlistb = new EFModels.Wishlist() { Itemid = wishlist.Itemid, Userid = wishlist.Userid, }; str = _UserFacade.DelWishlist(wishlistb); } catch (Exception e) { str = e.Message; throw e; } return(str); }
public string AddWishlist([FromBody] Models.Wishlist wishlist) { var status = "Update failed"; try { EFModels.Wishlist wishlistb = new EFModels.Wishlist() { Itemid = wishlist.Itemid, Userid = wishlist.Userid, }; // EFModels.Wishlist wishlista = _mapper.Map<EFModels.Wishlist>(wishlistb); status = _UserFacade.AddWishlist(wishlistb); } catch (Exception e) { status = e.Message; throw e; } return(status); }