public CustomerReply registerItem(VendingItems Itemreg) { Console.WriteLine("In register New Item"); CustomerReply Itemreply = new CustomerReply(); ItemRegistration.GetInstance().Add(Itemreg); Itemreply.Name = Itemreg.Name; Itemreply.Exp = Itemreg.Exp; Itemreply.RegistrationNumber = Itemreg.RegistrationNumber; Itemreply.RegistrationStatus = "Successful"; return(Itemreply); }
public String PutStudentRecord(VendingItems item) { Console.WriteLine("In update item informations"); return(ItemRegistration.GetInstance().UpdateItem(item)); }