public string GetProductInfo(int productId) { Product ret; try { ret = StoreService.GetProductInfo(productId); return(objDynamicJson(ret)); } catch (Exception e) { return(generateMessageFormatJason(e.Message)); } }
public string GetProductInfo(int productId) { return(JsonHandler.SerializeObject(StoreService.GetProductInfo(productId))); }