Exemple #1
0
        public async Task <IActionResult> PutTest(int id, TestEdit test)
        {
            if (id != test.Id)
            {
                return(BadRequest());
            }

            _bll.Tests.UpdateNoReturnAsync(_mapper.MapToBLL(test));

            await _bll.SaveChangesAsync();

            return(NoContent());
        }