Exemple #1
0
        public async Task <IActionResult> Delete(int id)
        {
            try
            {
                await EventRepo.DeleteById(id);

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