예제 #1
0
 public IHttpActionResult GetAllStudents()
 {
     try
     {
         var Getstd = stdbl.GetAllStds();
         if (Getstd.Count() > 0)
         {
             return(Ok(Getstd));
         }
         else
         {
             return(NotFound());
         }
     }
     catch
     {
         return(NotFound());
     }
 }