public HttpResponseMessage SHPR_TICKET_EDIT(TicketEntity oBe)
        {
            try
            {
                if (string.IsNullOrWhiteSpace((string)HttpContext.Current.Session["username"]))
                {
                    return(Request.CreateErrorResponse(HttpStatusCode.Unauthorized, "Acceso no autorizado."));
                }

                if (oBe.TIC_CodigoEstado != 2)
                {
                    if (oBe.TIC_SER_Id == 0)
                    {
                        throw new ArgumentException("Seleccione un servicio.");
                    }
                    if (oBe.TIC_PRO_Id == 0)
                    {
                        throw new ArgumentException("Seleccione un problema.");
                    }
                    if (oBe.TIC_PRI_Id == 0)
                    {
                        throw new ArgumentException("Seleccione una prioridad.");
                    }
                    if (string.IsNullOrEmpty(oBe.TIC_Descripcion))
                    {
                        throw new ArgumentException("Especifique una descripción.");
                    }

                    /*if (string.IsNullOrEmpty(oBe.TIC_USU_RESP_Description))
                     *  throw new ArgumentException("Especifique un responsable del ticket.");
                     */
                }

                var oBr = new TicketRule();

                /*oBe.COD_USUA_CREA = (string)HttpContext.Current.Session["username"];
                *  oBe.COD_USUA_MODI = (string)HttpContext.Current.Session["username"];*/
                oBr.SHPR_TICKET_EDIT(oBe);
                return(Request.CreateResponse(HttpStatusCode.OK, "Operación concretada con exito."));
            }
            catch (Exception ex)
            {
                return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex.Message));
            }
        }