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

            var result = await _clientHelper.PutClient <TimeRecord>($"api/TimeRecords/{timeRecord.TimeRecordID}", timeRecord, ClaimsHelper.GetJwtToken(User));

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

            var result = await _clientHelper.PutClient <Employee>($"api/Employees/{employee.EmployeeID}", employee, ClaimsHelper.GetJwtToken(User));

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