常用方法
常用方法
常用方法
常用方法
public async Task <IActionResult> CreateCoach([FromBody] CreateCoachCommand command) { var coach = new Coach(command.Name, command.Email, command.Age, command.PhoneNum); _coachRepository.Add(coach); try { await _coachRepository.CommitAsync(); } catch (Exception ex) { throw ex; } return(Ok()); }