コード例 #1
0
        public ActionResult _DeletePersonalAttribute(string id_attribute)
        {
            PersonalAttributeDTO personalAttributeDTO = new PersonalAttributeDTO();

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