public async Task <IActionResult> Get([FromRoute] long id)
        {
            var item = await _enterpriseService.GetByIdAsync(id);

            if (item == null)
            {
                return(NotFound(id));
            }

            return(Ok(item));
        }
        public async Task <IActionResult> GetAsync(int id)
        {
            var result = await enterpriseService.GetByIdAsync(id);

            if (!result.Success)
            {
                return(BadRequest(result.Message));
            }
            var enterpriseResource = mapper.Map <Enterprise, EnterpriseResource>(result.Resource);

            return(Ok(enterpriseResource));
        }