Ejemplo n.º 1
0
        public JsonResult AddComment(Notificacion_Comentarios comment)
        {
            Notificacion.BLL.Notificaciones n = new Notificacion.BLL.Notificaciones();
            var result = n.AddComment(comment);

            return(Json(result, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 2
0
        public int AddComment(Notificacion_Comentarios comment)
        {
            comment.IdUsuario = SessionHelpers.GetIdUsuario();
            comment.Fecha     = DateTime.Now;
            ctx.Notificacion_Comentarios.Add(comment);
            var status = ctx.SaveChanges();

            return(comment.Id);
        }