public async Task<IActionResult> Put([FromBody] Student student) { try { var res = await _studentRepository.EditAsync(student); return Ok(res); } catch (Exception ex) { return BadRequest(ex); } }
public async Task<IActionResult> Put([FromBody] Student student) { try { var res = await _studentRepository.EditAsync(student); return Ok(res); } catch (Exception ex) { return BadRequest(ex); } }