Example #1
0
        public IActionResult Index()
        {
            CompanyDto company = new CompanyDto();

            company = _companyAppService.GetByIDtos(IdUser());
            return(View(company));
        }
Example #2
0
        public IActionResult Index()
        {
            CompanyDto company = new CompanyDto();

            if (Request.Cookies["id"] != null)
            {
                var hh = Request.Cookies["id"].ToString();
                var id = long.Parse(hh);
                company = _companyAppService.GetByIDtos(id);
                return(View(company));
            }
            return(View(company));
        }