Esempio n. 1
0
        public IActionResult Put(int id, [FromBody] JobDto dto, [FromServices] IUpdateJob command)
        {
            var newJob = new JobUpdate
            {
                Id  = id,
                Dto = dto
            };

            _executor.ExecuteCommand(command, newJob);
            return(StatusCode(StatusCodes.Status204NoContent));
        }
 public void AddUpdateJob(IUpdateJob <TEntityId, TEntityVersion, TEntity> job)
 {
     _updateJobs.Add(job);
 }