Пример #1
0
        public async Task <IActionResult> GetCounter(int id)
        {
            var result = await _counterService.GetCounterById(id);

            if (result != null)
            {
                return(Ok(new ListResponseModel {
                    Items = result, Message = MessageConstants.RetrievalSuccess
                }));
            }
            return(BadRequest(MessageConstants.SomethingWentWrong));
        }