Example #1
0
 public bool ChangeProductInfo(int storeId, int productId, string name, string desc, double price, string category, int amount)
 {
     if (!loggedIn)
     {
         notLoggedInException();
     }
     return(StoreService.ChangeProductInfo(user, storeId, productId, name, desc, price, category, amount));
 }
Example #2
0
        public string ChangeProductInfo(int storeId, int productId, string name, string desc, double price, string category, int amount)
        {
            if (!loggedIn)
            {
                return(notLoggedInError());
            }
            bool ret;

            try
            {
                ret = StoreService.ChangeProductInfo(user, storeId, productId, name, desc, price, category, amount);
                return(resultJson(ret));
            }
            catch (Exception e)
            {
                return(generateMessageFormatJason(e.Message));
            }
        }