/// <summary>
 /// The GetLicence
 /// </summary>
 /// <param name="id">The id<see cref="int"/></param>
 /// <returns>The <see cref="ServiceResult"/></returns>
 public ServiceResult GetLicence(int id)
 {
     return(new ServiceResult(true)
     {
         Data = _repository.Get(x => x.Identifier == id)
     });
 }
Beispiel #2
0
        public Licence GetLicenceById(int id, string state = "", string lang = "en")
        {
            Licence licence = databasePlaceholder.Get(id, state, lang);

            if (licence == null)
            {
                throw new HttpResponseException(HttpStatusCode.NotFound);
            }
            return(licence);
        }