public ActionResult <string> Delete(long timestamp, string idEditorial, [FromBody] DTOModelBase dto)
        {
            CustomRequest           request          = new CustomRequest(null, CustomRequest.FLAG_DELETE, dto, idEditorial);
            EditorialRequestActions editorialRequest = new EditorialRequestActions(request, CustomScope);
            RequestManager          requestManager   = new RequestManager(timestamp, editorialRequest);

            requestsPile.AddRequest(idEditorial, requestManager);
            return(Program.REQ_RESPONSE_POSITIVE);
        }
Exemplo n.º 2
0
        public ActionResult <string> Delete(string idRequest, long timestamp, string idCategory, [FromBody] DTOModelBase dto)
        {
            Log.Error("CategoryController delete idPeitcion=" + idRequest + " idCategory=" + idCategory);

            CustomRequest          req             = new CustomRequest(idRequest, Entity.CustomRequest.FLAG_DELETE, idCategory, dto, dto.IdEditorial);
            CategoryRequestActions categoryRequest = new CategoryRequestActions(req, CustomScope);
            RequestManager         requestManager  = new RequestManager(timestamp, categoryRequest);

            requestPile.AddRequest(dto.IdEditorial, requestManager);
            return(Program.REQ_RESPONSE_POSITIVE);
        }