public async Task <ActionResult> GetCertificates([FromBody] RequestBodyId body)
        {
            var t = await _dm.GetPublicProfile(body.Id);

            if (t == null)
            {
                return(NotFound());
            }
            return(Ok(JsonConvert.SerializeObject(t)));
        }
示例#2
0
        public async Task <ActionResult> GetСlassmates([FromBody] RequestBodyId test)
        {
            var lkStudents = await _dm.GetClassmates(test.Id);

            if (lkStudents == null)
            {
                return(NotFound());
            }
            return(Ok(JsonConvert.SerializeObject(lkStudents)));
        }
示例#3
0
        public async Task <ActionResult> GetLastProjects([FromBody] RequestBodyId test)
        {
            var lkConfig = await _dm.GetLastProjects(test.Id);

            if (lkConfig == null)
            {
                return(NotFound());
            }

            return(Ok(JsonConvert.SerializeObject(lkConfig)));
        }
示例#4
0
        public async Task <ActionResult> GetConfig([FromBody] RequestBodyId test)
        {
            var lkConfig = await _dm.GetPublicConfig(test.Id);

            if (lkConfig == null)
            {
                return(NotFound());
            }

            return(Ok(JsonConvert.SerializeObject(lkConfig, Formatting.Indented)));
        }
示例#5
0
        public async Task <ActionResult> GetStudent([FromBody] RequestBodyId test)
        {
            var lkStudent = await _dm.GetStudent(test.Id);

            var r = Request;

            if (lkStudent == null)
            {
                return(NotFound());
            }

            return(Ok(JsonConvert.SerializeObject(lkStudent)));
        }
        public async Task <ActionResult> GetPublicPortfolio([FromBody] RequestBodyId body)
        {
            var portfolio = await _dm.GetPublicPortfolio(body.Id);

            return(Ok(JsonConvert.SerializeObject(portfolio)));
        }