/// <summary> /// The GetSoftware /// </summary> /// <param name="id">The id<see cref="int"/></param> /// <returns>The <see cref="ServiceResult"/></returns> public ServiceResult GetSoftware(int id) { return(new ServiceResult(true) { Data = _repository.Get(x => x.Identifier == id) }); }
public JsonResult Get(int id) { var apiResult = TryExecute(() => _softwareRepository.Get(id, "Category"), "Software fetched sucessfully"); return(Json(apiResult, JsonRequestBehavior.AllowGet)); }