protected override void Dispose(bool disposing)
 {
     //Clean up managable resources
     if (disposing)
     {
         if (userManager != null)
         {
             userManager.Dispose();
             userManager = null;
         }
         if (workTimeRecordService != null)
         {
             workTimeRecordService.Dispose();
             workTimeRecordService = null;
         }
     }
     //Clean up unmanagable resources
     //
     base.Dispose(disposing);
 }
 public WorkTimeRecordController(UserManager userManager, IWorkTimeRecordService workTimeRecordService)
 {
     this.userManager           = userManager;
     this.workTimeRecordService = workTimeRecordService;
 }