Пример #1
0
        /*  ----- 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);
        }
Пример #2
0
 public IActionResult Create([FromBody] EventType eventType)
 {
     _eventTypeRepo.Create(eventType);
     return(Ok());
 }