funciona subirFichero correctamente
This commit is contained in:
@@ -75,13 +75,7 @@ namespace APIFicheros.Controllers
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
byte[] contenidoFichero;
|
||||
var ms = new MemoryStream();
|
||||
datosFichero.fichero.CopyTo(ms);
|
||||
contenidoFichero = ms.ToArray();
|
||||
|
||||
int idFichero = Utilidades.guardarFichero(bd, contenidoFichero, datosFichero.fichero.FileName, datosFichero.descripcion);
|
||||
int idFichero = Utilidades.guardarFichero(bd, datosFichero.fichero, datosFichero.nombreFichero, datosFichero.descripcion);
|
||||
|
||||
|
||||
documentospolizassg documentoObtenido = bd.documentospolizassg.First( x => x.idDocumento == datosFichero.idDocumento);
|
||||
@@ -93,7 +87,7 @@ namespace APIFicheros.Controllers
|
||||
bd.SaveChanges();
|
||||
|
||||
transaction.Commit();
|
||||
return Ok();
|
||||
return Ok("Fichero subido correctamente");
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
Reference in New Issue
Block a user