public static IntegerReturnValue DeleteCustomer(int customerId) { try { using (var db = new QCallerEntities()) { var result = db.DeleteCustomer(customerId); return(new IntegerReturnValue() { Description = "Successfully Deleted Customer", Result = result }); } } catch (Exception e) { return(new IntegerReturnValue() { Description = $"Failed to Delete Customer: {e.Message}", Result = -1 }); } }