コード例 #1
0
 public string AddSellingPoint([Bind(Include = "Address,ShawarmaTitle")] SellingPoint sellingPoint)
 {
     return(DatabaseQueries.AddSellingPoint(sellingPoint.ShawarmaTitle, sellingPoint.Address,
                                            Request.Form["SellingPointCategory"])
         ? "Success"
         : "Error");
 }
コード例 #2
0
 public bool TestAddSellingPoint(string sellingPointTitle, string address, string categoryName)
 {
     return(DatabaseQueries.AddSellingPoint(sellingPointTitle, address, categoryName));
 }