Ejemplo n.º 1
0
 public ActionResult <VersionDetail> IncrementVersion(VersionRequest versionRequests)
 {
     try
     {
         var increment = _service.IncrementVersion(versionRequests);
         return(Ok(increment));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex));
     }
 }
Ejemplo n.º 2
0
 public ActionResult <IEnumerable <VersionDetail> > GetVersions(VersionRequest versionRequests)
 {
     try
     {
         var versionList = _service.GetVersions(versionRequests);
         return(Ok(versionList));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex));
     }
 }