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))); }
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))); }
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))); }
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))); }
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))); }