示例#1
0
 public IHttpActionResult PostlinkedDoctypes([FromBody] List <DoctypesLinksDTO> linked)
 {
     if (linked.Count != 0)
     {
         Service.AddLinks(linked);
         return(Ok(new { Status = "Added", Count = linked.Count }));
     }
     return(ResponseMessage(new ResponseMessageService(HttpStatusCode.NotFound, "No document types to link were provided.", Request.RequestUri.AbsoluteUri)));
 }