Exemple #1
0
        public IActionResult AddHistoryItem([FromBody] HistoryItemViewModel vm)
        {
            var studentId = int.Parse(User.Claims.Single(c => c.Type == "sid").Value);

            historyService.AddHistoryItem(vm, studentId);

            return(Ok());
        }