public IActionResult Post(CSession attendance) { if (DbActions.ValidateRequest(Request)) { DbActions.UpdateAttendance(attendance); } else { return(StatusCode(401)); } return(StatusCode(200)); }