示例#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));
 }