Пример #1
0
        public JsonResult Get(int TagId, string Nombre)
        {
            var lPerfil = TagDAO.Get(TagId, Nombre);

            return(new JsonResult()
            {
                JsonRequestBehavior = JsonRequestBehavior.AllowGet,
                Data = new { Datos = lPerfil }
            });
        }
Пример #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="_tagGuid"></param>
        /// <returns></returns>
        public Tag GetTag(Guid _tagGuid)
        {
            TagDAO dao = new TagDAO(MongoDB);

            return(dao.Get(_tagGuid));
        }