public IHttpActionResult PendingBooks([FromBody] IntDTO idt) { if (idt.bId != null) { foreach (var item in idt.bId) { repo.Accept(item); } return(StatusCode(HttpStatusCode.Created)); } return(StatusCode(HttpStatusCode.NoContent)); }
public IHttpActionResult PendingBooks([FromBody] IntDTO idt) { if (idt.bId != null) { foreach (var item in idt.bId) { repo.Accept(item); } return(StatusCode(HttpStatusCode.Created)); } return(StatusCode(HttpStatusCode.NoContent)); }