public Models.SurveyItem Post([FromBody] Models.SurveyItem SurveyItem) { if (ModelState.IsValid && SurveyItem.ModuleId == _entityId) { SurveyItem = ConvertToSurveyItem(_SurveyRepository.CreateSurveyItem(SurveyItem)); _logger.Log(LogLevel.Information, this, LogFunction.Create, "SurveyItem Added {SurveyItem}", SurveyItem); } return(SurveyItem); }