/// <summary> /// Adds a Customer. /// </summary> /// <param name="input">The Customer to add.</param> /// <returns>The outcome of the method.</returns> public bool AddCustomer(EF_PoC_Customer.Customer input) { try { return dataAccess.AddCustomer(input); } catch { return false; } }
/// <summary> /// Adds both. /// </summary> /// <param name="input">The Address with Customer to add.</param> /// <returns>The outcome of the method.</returns> public bool AddBoth(EF_PoC_Customer.Address input) { try { return dataAccess.AddBoth(input); } catch { return false; } }
/// <summary> /// Edits a Customer. /// </summary> /// <param name="oldinput">The Customer to edit.</param> /// <param name="newinput">The Customer to edit with.</param> /// <returns>The outcome of the method.</returns> public bool ModifyCustomer(Guid oldinput, EF_PoC_Customer.Customer newinput) { try { return dataAccess.ModifyCustomer(oldinput, newinput); } catch { return false; } }
/// <summary> /// Edits both. /// </summary> /// <param name="oldinputAddress">The Address with Customer to edit.</param> /// <param name="oldinputCustomer">The Address with Customer to edit with.</param> /// <param name="newinput"></param> /// <returns>The outcome of the method.</returns> public bool ModifyBoth(Guid oldinputAddress, Guid oldinputCustomer, EF_PoC_Customer.Address newinput) { try { return dataAccess.ModifyBoth(oldinputAddress, oldinputCustomer, newinput); } catch { return false; } }