Exemplo n.º 1
0
        public async Task <IActionResult> PutComponent(int id, ComponentEdit component)
        {
            if (id != component.Id)
            {
                return(BadRequest(new ResponseMessage("Request id and component id do not match!")));
            }

            _bll.Components.UpdateNoReturnAsync(_componentMapper.MapToBLL(component));
            await _bll.SaveChangesAsync();

            return(NoContent());
        }