예제 #1
0
 // DELETE api/<controller>/5
 public IHttpActionResult Delete(int id)
 {
     if (repo.FindbyId(id) == null)
     {
         return(NotFound());
     }
     else
     {
         repo.Delete(id);
         return(Ok());
     }
 }
예제 #2
0
 public Response Delete(long DeveloperId)
 {
     return(repo.Delete(DeveloperId));
 }