public JsonResult AddComment(Notificacion_Comentarios comment) { Notificacion.BLL.Notificaciones n = new Notificacion.BLL.Notificaciones(); var result = n.AddComment(comment); return(Json(result, JsonRequestBehavior.AllowGet)); }
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); }