Beispiel #1
0
 public IHttpActionResult Editstd(int id, StudentDTO std)
 {
     try
     {
         if (std.StdId == id && ModelState.IsValid)
         {
             var Editedstd = stdbl.EditStd(std);
             return(Ok(Editedstd));
         }
         else
         {
             return(BadRequest("Data is not Valid or Id is not found"));
         }
     }
     catch (Exception)
     {
         return(BadRequest("Data is not Valid or Id is not found"));
     }
 }