public int UpdateReceipt(ReceiptPaymentViewModel model) { try { return(receipt.UpdateReceipt(model)); } catch (Exception ex) { StaticHelper.LogException(path: up.GetLogFilePath(), errorMessage: ex.Message, methodName: $"Class Name: {nameof(ReceiptPresenter)} - Method name: {nameof(UpdateReceipt)}", stackTrace: ex.StackTrace); return(0); } }