private void DeleteVoluntario()
        {
            IPersistenceApplication per = new CrossCutting.IoCManager.Voluntario.Application.Persistence.PersistenceApplicationIoCManager(base.Config).GetCurrentIPersistenceApplicationImplementation();

            per.Voluntario = Voluntario;
            per.RequestId  = RequestId;
            per.Delete();
        }
Ejemplo n.º 2
0
        public void DeleteTest()
        {
            // AddTest();
            IPersistenceApplication per = new CrossCutting.IoCManager.Voluntario.Application.Persistence.PersistenceApplicationIoCManager(base.Config)
                                          .GetCurrentIPersistenceApplicationImplementation();

            //per.Voluntario = Voluntario;
            per.VoluntarioSerialized = base.GetVoluntarioSerialized();
            per.RequestId            = RequestId;
            per.Delete();
        }
Ejemplo n.º 3
0
 public IActionResult Delete([FromBody] string voluntario, [FromServices] IConfiguration config)
 {
     using (IPersistenceApplication applicationPer
                = new CrossCutting.IoCManager.Voluntario.Application.Persistence.PersistenceApplicationIoCManager(config)
                  .GetCurrentIPersistenceApplicationImplementation())
     {
         string requestId = Guid.NewGuid().ToString();
         applicationPer.RequestId            = requestId;
         applicationPer.VoluntarioSerialized = voluntario;
         try
         {
             applicationPer.Delete();
             return(NoContent());
         }
         catch (Exception ex)
         {
             return(StatusCode((int)HttpStatusCode.InternalServerError, ex.Message));
         }
     }
 }