public bool UpdateFlavor(int Flavor_ID, FlavorWPF Flavor_WPF) { try { bool rtn = lck.UpdateFlavor(Flavor_ID, Flavor_WPF.ToFlavor()); return(rtn); } catch (Exception ex) { Log("UpdateFlavor(int,FlavorWPF) - Error msg:" + ex.Message); return(false); } }
public bool AddFlavor(FlavorWPF Flavor_WPF) { try { bool rtn = lck.AddFlavor(Flavor_WPF.ToFlavor()); return(rtn); } catch (Exception ex) { Log("AddFlavor(FlavorWPF) - Error msg:" + ex.Message); return(false); } }