Beispiel #1
0
        public IActionResult Put([FromBody] TUpdateInput input)
        {
            var dto = Service.Update(input);

            if (dto == null)
            {
                return(NotFound());
            }
            return(Ok(dto));
        }
 public TEntityDto Update(TKey id, [FromBody] TEntityUpdateDto dto)
 {
     dto.Id = id;
     return(appService.Update(dto));
 }