public async Task <IActionResult> DeleteAsync(int id)
        {
            var result = await enterpriseService.DeleteAsync(id);

            if (!result.Success)
            {
                return(BadRequest(result.Message));
            }

            var enterpriseResource = mapper.Map <Enterprise, EnterpriseResource>(result.Resource);

            return(Ok(enterpriseResource));
        }
        public async Task <ActionResult> Delete([FromRoute] long id)
        {
            await _enterpriseService.DeleteAsync(id);

            return(NoContent());
        }