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)); } }
//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)); } }