public int StoreCalculation(Output output) { QuotationDal dal = new QuotationDal(); int id = dal.Insert(output); return(id); }
public string Get(int id) { // 1 - database stuff if (id == 1) { QuotationDal quotation = new QuotationDal(); quotation.Read(1); Output output = new Output(); Input input = new Input() { HargaKainA = 15, Tinggi = 120, Lebar = 55, Set = 3 }; output.Input = input; int i = quotation.Insert(output); List <string> image = new List <string>() { "https://i.postimg.cc/G27TFN7F/F1-1.jpg", "https://i.postimg.cc/zBc3bhvp/F1-2.jpg", "https://i.postimg.cc/P53D0HL8/F3-1.jpg" }; quotation.Update(i, image); } return(":)"); }