コード例 #1
0
        public ActionResult DeleteTransporterPost(string email)
        {
            int         tid         = adminrepo.GetIdFromEmail <Transporter>(email);
            Transporter transporter = trepo.Get(tid);

            trepo.Delete(transporter);
            TempData["success"] = "User deleted successfully";
            return(RedirectToAction("SearchTransporter", new { id = 0 }));
        }
 public async Task <OperationResult> Delete(int id)
 {
     return(await _transporterService.Delete(id));
 }