public async Task <ActionResult> Edit([Bind(Include = "Id, Name")] Faculty faculty)
        {
            if (ModelState.IsValid)
            {
                Faculty facultyToBeUpdated = _facultyRepository.GetById(faculty.Id);
                facultyToBeUpdated.Name = faculty.Name;

                _facultyRepository.GetEntry(facultyToBeUpdated).State = EntityState.Modified;
                await _facultyRepository.Commit();

                RedirectToAction("Details", new { id = faculty.Id });
            }

            return(View(faculty));
        }