示例#1
0
        public async Task <ActionResult <Landmark> > GetLandMarks(int id)
        {
            var landmark = await _landMarkRepository.GetLandMark(id);

            if (landmark == null)
            {
                return(NotFound("Requested landmark does not exists"));
            }
            return(Ok(landmark));
        }