예제 #1
0
 /// <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)
     });
 }
예제 #2
0
        public JsonResult Get(int id)
        {
            var apiResult = TryExecute(() => _softwareRepository.Get(id, "Category"), "Software fetched sucessfully");

            return(Json(apiResult, JsonRequestBehavior.AllowGet));
        }