public void UpdateCustomer(CustomerDM customerDM) { try { UOW.Customers.Update(customerDM.ToCustomer()); UOW.Save(); } catch (Exception ex) { throw new DataException(ex.Message, "Error in updating Customer"); } }