Exemple #1
0
        public ActionResult _DeleteGeneralAttribute(string id_attribute)
        {
            GeneralAttributeDTO generalAttributeDTO = new GeneralAttributeDTO();

            generalAttributeDTO.id_attribute = id_attribute;
            generalAttributeDTO.user         = Request.Cookies["user_id"].Value;;
            if (categorieProvider.deleteGeneralAttribute(generalAttributeDTO).Result)
            {
                return(new HttpStatusCodeResult(200));
            }
            return(new HttpStatusCodeResult(404, "Error, el atributo no se puede eliminar"));
        }