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()); }
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()); }