public async Task <IActionResult> ResourceAllocation(Resources resources) { bool add = await _repo2.AllocateResources2(resources); return(RedirectToAction(nameof(ResourceAllocation), new { success = add })); }