Ejemplo n.º 1
0
        public IActionResult GetByValue(string value)
        {
            if (value == null)
            {
                return(new BadRequestResult());
            }

            Setting returnedSetting = settingRepository.GetByValue(value);

            if (returnedSetting != null)
            {
                return(new OkObjectResult(returnedSetting));
            }
            else
            {
                return(new NotFoundResult());
            }
        }