Example #1
0
 public IActionResult GetMarks(int?Id)
 {
     _log4net.Info(" Http GET By ID request Started");
     if (Id == null)
     {
         return(BadRequest());
     }
     try
     {
         var data = adb.GetMarks(Id);
         if (data == null)
         {
             return(NotFound());
         }
         _log4net.Info(" Http GET By ID request Completed");
         return(Ok(data));
     }
     catch (Exception)
     {
         return(BadRequest());
     }
 }