public async Task <ActionResult <ClassTypeViewModel> > Post(ClassTypeViewModel classType) { var response = await _classTypeService.Create(classType.ToModel()); if (response != BusinessLogic.Enums.StatusCode.Created) { _logger.LogError($"ClassType {classType.Name} not Created."); } return(response == BusinessLogic.Enums.StatusCode.Created ? (ActionResult <ClassTypeViewModel>)Ok() : Conflict()); }