예제 #1
0
        public ActionResult <List <CSession> > GetSessionList(int teacherId, String monthYear)
        {
            DateTime parsedMonth = DateTime.ParseExact(monthYear, "MM-yyyy", null);

            if (DbActions.ValidateRequest(Request))
            {
                return(DbActions.GetSessionList(teacherId, parsedMonth));
            }
            return(StatusCode(401));
        }