/* ----- Public Methods ----- */ public IOperationResult CreateEventType(EventType eventType) { Result.Reset(); Result = eventTypeContext.Create(eventType); if (Result.IsError) { Result = eventTypeContext.Result; Result.CustomMessage = "There was a problem creating the EventType"; } return(Result); }
public IActionResult Create([FromBody] EventType eventType) { _eventTypeRepo.Create(eventType); return(Ok()); }