Пример #1
0
        public string SaveTimesheetExpense(int timesheetId, string title, DateTime date, string filePath)
        {
            SqlCommand command = GetCommandForTimesheetExpenseUpload(timesheetId, title, date, filePath);

            var fsh = new FileStreamHelper();
            var conn = ConfigurationManager.ConnectionStrings["ApplicationServices"].ConnectionString;
            fsh.SaveDocumentWithoutFileStream(command, conn, filePath);

            return command.Parameters["@DocumentId"].Value.ToString();
        }
Пример #2
0
        public string SaveInvoiceFile(int invoiceId, string filePath)
        {
            SqlCommand command = GetCommandForInvoiceUpload(invoiceId, filePath);

            var fsh = new FileStreamHelper();
            var conn = ConfigurationManager.ConnectionStrings["ApplicationServices"].ConnectionString;
            fsh.SaveDocumentWithoutFileStream(command, conn, filePath);

            return command.Parameters["@DocumentId"].Value.ToString();
        }