public IActionResult Create(ConcernViewModel newConcern) { if (ModelState.IsValid) { var concernToCreate = new Concern() { ConcernId = Guid.NewGuid(), // EmployeeId = newConcern.EmployeeId, // Guid.NewGuid(), // newConcern.EmployeeId, ConcernDate = DateTime.Now, // newConcern.ConcernDate, ConcernType = newConcern.ConcernType, ConcernRemarks = newConcern.ConcernRemarks, ConcernStatus = newConcern.ConcernStatus }; _employee.AddNewConcern(concernToCreate); return(RedirectToAction("Index")); } else { return(View("Form", newConcern)); } }