public void Post([FromBody] MachineModel machine) { try { LoggerUtils.WriteLog("MachinesController : POST - request received"); machineService.Insert(machine); } catch (Exception ex) { LoggerUtils.WriteLog("ERROR : MachinesController : " + ex.Message + "\r" + "InnerException : " + ex.InnerException); } }