Ejemplo n.º 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();
        }
Ejemplo n.º 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();
        }