public string Delete(int id)
        {
            Subevent_has_User subevent_has_User = new Subevent_has_User();

            try
            {
                Subevent_has_User.GetById(id);
                if (Subevent_has_User == null)
                {
                    Error  error      = new Error("Nao encontrado");
                    string jsonString = JsonSerializer.Serialize(error);

                    return(jsonString);
                }
                Subevent_has_User.Delete(id);

                return("Deletado com Sucesso");
            }
            catch (Exception ex)
            {
                Error  error      = new Error(ex.ToString());
                string jsonString = JsonSerializer.Serialize(error);

                return(jsonString);
            }
        }
        public string Show(int id)
        {
            Subevent_has_User subevent_has_User = new Subevent_has_User();

            try
            {
                Subevent_has_User.GetById(id);


                if (Subevent_has_User != null)
                {
                    string jsonString = JsonSerializer.Serialize(Subevent_has_User);
                    return(jsonString);
                }
                else
                {
                    Error  error      = new Error("Nao encontrado");
                    string jsonString = JsonSerializer.Serialize(error);
                    return(jsonString);
                }
            }
            catch (Exception ex)
            {
                Error  error      = new Error(ex.ToString());
                string jsonString = JsonSerializer.Serialize(error);

                return(jsonString);
            }
        }