コード例 #1
0
 public ActionResult DeletePost(int id, UmsDbContext _ctx)
 {
     if (ModelState.IsValid && _umsFacade.DeleteUser(id))
     {
         TempData["AlertMessage"] = AlertHelper.SuccessAlert("Success!", "Your last operation was successful");
         return(RedirectToAction("Index"));
     }
     else
     {
         ViewBag.AlertMessage = AlertHelper.DangerAlert("Error!", "Your last operation issued an error");
         return(View(_service.GetById(id)));
     }
 }
コード例 #2
0
ファイル: CourseService.cs プロジェクト: shovradas/ums-dotnet
 public CourseService(UmsDbContext context) : base(context)
 {
     _context = context;
 }
コード例 #3
0
 public RegistrationService(UmsDbContext context) : base(context)
 {
     _context = context;
 }
コード例 #4
0
 public UserRepository(UmsDbContext umsDbContext, IPropertyMappingService propertyMappingService)
 {
     _umsDbContext           = umsDbContext;
     _propertyMappingService = propertyMappingService;
 }
コード例 #5
0
 public UserService(UmsDbContext context) : base(context)
 {
     _context = context;
 }
コード例 #6
0
 public SectionService(UmsDbContext context) : base(context)
 {
     _context = context;
 }
コード例 #7
0
 public StudentService(UmsDbContext context) : base(context)
 {
     _context = context;
 }
コード例 #8
0
 public DepartmentService(UmsDbContext context) : base(context)
 {
     _context = context;
 }
コード例 #9
0
ファイル: Service.cs プロジェクト: vladitodorov/UMS
 public Service()
 {
     this.Context = new UmsDbContext();
 }
コード例 #10
0
 public AuthService(UmsDbContext context, CryptoHelper cryptoHelper)
 {
     _context      = context;
     _cryptoHelper = cryptoHelper;
 }
コード例 #11
0
ファイル: UmsFacade.cs プロジェクト: shovradas/ums-dotnet
 public UmsFacade(UmsDbContext context)
 {
     _context = context;
 }