Ejemplo n.º 1
0
        public void Delete()
        {
            request.VotingID = 18;


            var isValid = facade.Delete(request);

            Assert.True(isValid.Result.IsSuccess);
        }
Ejemplo n.º 2
0
 public async Task <IActionResult> Delete([FromBody] VotingRequest request)
 {
     try
     {
         return(Ok(await facade.Delete(request)));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }