public IActionResult AddHistoryItem([FromBody] HistoryItemViewModel vm) { var studentId = int.Parse(User.Claims.Single(c => c.Type == "sid").Value); historyService.AddHistoryItem(vm, studentId); return(Ok()); }
public IActionResult AddHistoryItem([FromBody] HistoryItemViewModel vm) { var studentId = int.Parse(User.Claims.Single(c => c.Type == "sid").Value); historyService.AddHistoryItem(vm, studentId); return(Ok()); }