public async Task <IActionResult> Get([FromQuery] Guid id)
        {
            var result = await _workService.Get(id);

            if (result != null)
            {
                return(Ok(result));
            }
            else
            {
                return(NotFound());
            }
        }
Beispiel #2
0
        public IActionResult Get(int Id)
        {
            var res = _workService.Get(Id);

            return(Ok(res));
        }
        public IActionResult GetByIdWork(int id)
        {
            var model = _workService.Get(id);

            return(Json(model));
        }