public async Task <IActionResult> UpdateFormDetails(FormClearance.Models.FormClearance formClearance)
        {
            formClearance.UserTreated     = User.Identity.Name;
            formClearance.Date            = DateTime.Now;
            formClearance.UserRole        = User.IsInRole("Admin") ? "Admin" :  "Network Engineer";
            formClearance.TechnicalPerson = User.IsInRole("Admin") ? "Admin" : "Network Unit";
            var updateDetails = await _repo.UpdateAsync(StaticDetails.UpdateForm, formClearance);

            if (updateDetails == true)
            {
                TempData["Success"] = "Updated Successfully";
            }
            return(View(nameof(FormClearance)));
        }
        public async Task <IActionResult> FormDetails(FormClearance.Models.FormClearance formClearance)
        {
            if (ModelState.IsValid)
            {
                var createForm = await _repo.CreateAsync(StaticDetails.CreateForm, formClearance);

                if (createForm == true)
                {
                    TempData["Success"] = "Submitted Successfully";
                }
                return(RedirectToAction("Index", "Home"));
            }
            return(View());
        }