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)); } }
public ActionResult Edit(Guid id) { ViewBag.Companys = _companyService.GetAllCompanys(); return(View(_releaseService.FindBy(x => x.Id == id).FirstOrDefault())); }