public async Task <bool> UpdateCustomerAsync(Customer customer) { //Will update all properties of the Customer _Context.Customers.Attach(customer); _Context.Entry(customer).State = EntityState.Modified; try { return(await _Context.SaveChangesAsync() > 0 ? true : false); } catch (Exception exp) { _Logger.LogError($"Error in {nameof(UpdateCustomerAsync)}: " + exp.Message); } return(false); }