/// <summary> /// The GetRegister /// </summary> /// <param name="id">The id<see cref="int"/></param> /// <returns>The <see cref="ServiceResult"/></returns> public ServiceResult GetRegister(string id) { return(new ServiceResult(true) { Data = _repository.Get(x => x.Identifier.Equals(id)) }); }
public ActionResult EditRegister(RegisterViewModel registerViewModel) { Register register = _registerRepository.Get(registerViewModel.RegisterId); register.Mark = registerViewModel.Mark; _registerRepository.Update(register); return(RedirectToAction("Grade", new { id = register.Course.CourseId })); }