public List <Powder> getAllPowders() { PowderAPI.PowderController powderController = new PowderAPI.PowderController(); List <Powder> powders = new List <Powder>(); if (!powderController.getAllPowders().Equals("null")) { powders = new JavaScriptSerializer().Deserialize <List <Powder> >(powderController.getAllPowders()); } return(powders); }
public String deletePowder(Int32 id) { PowderAPI.PowderController powderController = new PowderAPI.PowderController(); return(powderController.deletePowder(id)); }
public String updateStocks(List <Powder> powders, String id) { PowderAPI.PowderController powderController = new PowderAPI.PowderController(); return(powderController.updateStocks(new JavaScriptSerializer().Serialize(powders), id)); }