Esempio n. 1
0
 public IHttpActionResult GetReleaseByVersion(string version)
 {
     try
     {
         var dataRetireved = _releaseService.FindBy(x => x.Version == version).FirstOrDefault();
         return(Ok(dataRetireved));
     }
     catch (Exception ex)
     {
         ModelState.AddModelError("Error", ex.Message);
         return(BadRequest(ModelState));
     }
 }
Esempio n. 2
0
 public ActionResult Edit(Guid id)
 {
     ViewBag.Companys = _companyService.GetAllCompanys();
     return(View(_releaseService.FindBy(x => x.Id == id).FirstOrDefault()));
 }