コード例 #1
0
    public static bool SaveStore(string id, string name, string status)
    {
        InventoryBL bl    = new InventoryBL();
        tbl_Stores  Store = new tbl_Stores()
        {
            Store_Id     = Convert.ToInt32(id),
            Store_Name   = name,
            Store_Status = status == "1" ? true : false
        };

        if (!bl.ValidateStore(Store))
        {
            bool result = bl.SaveStore(Store);
            return(result);
        }
        return(false);
    }