public IActionResult AddMachine([FromBody] AddMachineModel model) { var machine = _mapper.Map <Machine>(model); _machineService.AddMachine(machine); return(Ok()); }