Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// <summary>
- /// Get concrete config by key parametr
- /// </summary>
- /// <param name="id">name of configuration</param>
- /// <param name="key">parametr key</param>
- /// <returns></returns>
- [Route("api/configuration/{id}/{key}")]
- public IHttpActionResult Get(string id, string key)
- {
- try
- {
- var getname = _service.Repository.GetByKey(id, key);
- if (getname != null)
- return Ok(getname);
- return NotFound();
- }
- catch (Exception e)
- {
- return InternalServerError(e);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement