示例#1
0
        public async Task <IActionResult> EventDetails([FromForm] EventInputData eventInput, IFormFile File)
        {
            var result = await EventCatalogSeed.UpdateEvent(eventInput, _context, File, _env);

            if (result == "Event Addition Succesful")
            {
                return(Ok(result));
            }
            else
            {
                return(Problem(result));
            }
        }
示例#2
0
        //included
        public async Task <IActionResult> EventDetails([FromForm] string eventInput, IFormFile File)
        {
            var str = eventInput;

            EventInputData eventInput1 = new EventInputData();

            eventInput1 = JsonConvert.DeserializeObject <EventInputData>(eventInput);
            var result = await EventCatalogSeed.UpdateEvent(eventInput1, _context, File, _env);

            if (result == "Event Addition Succesful")
            {
                return(Ok(result));
            }
            else
            {
                return(Problem(result));
            }
        }