public async Task <IActionResult> Create(Computer computer) { if (!ModelState.IsValid) { return(BadRequest()); } await _computerRepository.CreateAsync(computer.ToEntityModel()); return(Ok()); }
public async Task <IActionResult> Create(Computer computer) { if (!ModelState.IsValid) { return(BadRequest()); } await _computerRepository.CreateAsync(computer.ToEntityModel()); return(Ok()); }