feat(api): process, sub, tnk, work в update добавлено изменение даты изменения.

This commit is contained in:
Mikhail Trubnikov
2024-05-20 14:56:24 +10:00
parent 6f845635c5
commit 4ea2bdb326
4 changed files with 4 additions and 0 deletions

View File

@@ -175,6 +175,7 @@ namespace PARR.API.Controllers.V1
orig.Name = request.Name.Trim();
orig.EsppId = request.EsppId;
orig.DateModified = DateTimeOffset.UtcNow;
if (!await processService.CommitAsync())
return BadRequest(new Response(false, new List<ErrorModel> { new ErrorModel { Message = "Ошибка при изменении процесса." } }));