public async Task <IHttpActionResult> Delete(string Id)
        {
            try
            {
                log.Info(new MDCSet(this.ControllerContext.RouteData), new InfoException(Id));
                await _propuestasRepo.Delete(Id);

                return(Ok("Registro eliminado correctamente!"));
            }
            catch (Exception e)
            {
                log.Error(new MDCSet(this.ControllerContext.RouteData), e);
                throw new Exception(e.Message, e);
            }
        }
示例#2
0
        public async Task <IHttpActionResult> Delete(String Id)
        {
            try
            {
                await _repo.Delete(Id);

                return(Ok("Registro eliminado exitosamente!"));
            }
            catch (Exception e)
            {
                return(InternalServerError(e));
            }
        }