public ActionResult DeleteMember(string id)
 {
     if (Session["S_EmpID"] != null && Session["S_EmpFname"] != null)
     {
         if (!string.IsNullOrEmpty(id))
         {
             var result = _memRepository.DeleteMember(id);
             return(RedirectToAction("ListMemberByEmp", "Member"));
         }
         return(View());
     }
     else
     {
         return(RedirectToAction("Login2", "Account"));
     }
 }
 public void DeleteMember(Member member)
 {
     memberDao.DeleteMember(member);
 }
Пример #3
0
 public async Task DeleteMember(int id)
 {
     await _memberDao.DeleteMember(id).ConfigureAwait(false);
 }