forked from sanchezvem/PyroFetes
commentaire endpoint
This commit is contained in:
@@ -52,7 +52,7 @@ public class UpdateSupplierEndpoint(PyroFetesDbContext pyrofetesdbcontext) : End
|
||||
}
|
||||
}
|
||||
|
||||
await pyrofetesdbcontext.SaveChangesAsync(ct);
|
||||
await pyrofetesdbcontext.SaveChangesAsync(ct); //Sauvegarde les changements
|
||||
|
||||
var response = new GetSupplierDto
|
||||
{
|
||||
@@ -65,6 +65,6 @@ public class UpdateSupplierEndpoint(PyroFetesDbContext pyrofetesdbcontext) : End
|
||||
City = supplierToEdit.City
|
||||
};
|
||||
|
||||
await Send.OkAsync(response, ct);
|
||||
await Send.OkAsync(response, ct); //Envoie de la réponse réussite 200 au client
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user