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