Exemplo n.º 1
0
        public IActionResult Edit(Guid id)
        {
            // Get the concern from the EmployeeManagement
            var concern = _employee.GetByConcernId(id);

            // build the view model
            var concernViewModel = new ConcernViewModel()
            {
                // ConcernDate = concern.ConcernDate,
                ConcernType    = concern.ConcernType,
                ConcernRemarks = concern.ConcernRemarks,
                ConcernStatus  = concern.ConcernStatus,
                ConcernId      = id
            };

            // send the view model
            ViewBag.IsEditing = true;
            return(View("Form", concernViewModel));
        }