Esempio n. 1
0
        public async Task <IActionResult> Edit(Ewent model)
        {
            if (ModelState.IsValid)
            {
                try
                {
                    await EventRepo.Edit(model);

                    return(message(MessageType.success));
                }

                catch (Exception e)
                {
                    return(message(MessageType.danger));
                }
            }

            return(message(ModelState));
        }