public async Task <IActionResult> Put([FromBody] Dependent dependent) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } await _dependentRepo.EditDependent(dependent); return(Ok(dependent)); }