public async Task <IActionResult> Create(TimeRecord timeRecort)
        {
            if (!ModelState.IsValid)
            {
                return(View(timeRecort));
            }

            var result = await _clientHelper.PostClient("api/TimeRecords", timeRecort, ClaimsHelper.GetJwtToken(User));

            if (result.StatusCode == System.Net.HttpStatusCode.Created)
            {
                return(RedirectToAction("Index"));
            }
            return(View(timeRecort));
        }
        public async Task <IActionResult> Create(Employee employee)
        {
            if (!ModelState.IsValid)
            {
                return(View(employee));
            }

            var result = await _clientHelper.PostClient("api/Employees", employee, ClaimsHelper.GetJwtToken(User));

            if (result.StatusCode == System.Net.HttpStatusCode.Created)
            {
                return(RedirectToAction("Index"));
            }
            return(View(employee));
        }