public async Task <ActionResult <int> > Create([FromBody] CreateEmployeeDto model) { var employee = await _employeeDao.GetByPersonalIdAsync(model.PersonalId); if (employee != null) { return(Conflict($"Employee with personalId {model.PersonalId} already exists")); } return(Ok(await _employeeDao.CreateAsync(model.GetEmployee()))); }