public IActionResult Delete(string id)
 {
     try
     {
         if (SessionIsNull())
         {
             return(Redirect("/Home/Login?mustLogin=true&next=/Employee/Delete?id=" + id));
         }
         PlanService ser    = new PlanService();
         int         result = ser.DeleteUser(id);
         SetViewBag();
         if (result == 1)
         {
             return(Redirect("/Employee/ViewEmployee?delete_success=true"));
         }
         else
         {
             return(Redirect("/Employee/ViewEmployee?delete_error=true"));
         }
     }
     catch (System.Exception)
     {
         return(Redirect("/Employee/ViewEmployee?delete_error=true"));
     }
 }