Ejemplo n.º 1
0
        public ActionResult <string> Put(string idRequest, long timestamp, [FromBody] DTOCategory categoryDTO)
        {
            CustomRequest          req             = new CustomRequest(idRequest, CustomRequest.FLAG_UPDATE, categoryDTO, categoryDTO.IdEditorial);
            CategoryRequestActions categoryRequest = new CategoryRequestActions(req, CustomScope);
            RequestManager         requestManager  = new RequestManager(timestamp, categoryRequest);

            requestPile.AddRequest(categoryDTO.IdEditorial, requestManager);
            return(Program.REQ_RESPONSE_POSITIVE);
        }
Ejemplo 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);
        }