public IActionResult OnPost()
 {
     if (!ModelState.IsValid)
     {
         return(Page());
     }
     else
     {
         if (CreateObj.Id != 0)
         {
             _facultyRepo.Update(CreateObj);
         }
         else
         {
             _facultyRepo.Add(CreateObj);
         }
         _facultyRepo.Save();
         return(RedirectToPage("./Index"));
     }
 }