public TenantMaintenance SecondTenantMaintenance()
        {
            var secondTenantMaintenance = new TenantMaintenance {

                 TenantID = new Int32()
            ,
                 MaintenanceID = new Int32()
            ,
                 MaintenanceOrder = new MaintenanceOrder()

             };

            return secondTenantMaintenance;
        }
        public TenantMaintenance ThirdTenantMaintenance()
        {
            var thirdTenantMaintenance = new TenantMaintenance {

                 TenantID = new Int32()
            ,
                 MaintenanceID = new Int32()
            ,
                 MaintenanceOrder = new MaintenanceOrder()

             };

            return thirdTenantMaintenance;
        }
        public TenantMaintenance FirstTenantMaintenance()
        {
            var firstTenantMaintenance = new TenantMaintenance {

                 TenantID = new Int32()
            ,
                 MaintenanceID = new Int32()
            ,
                 MaintenanceOrder = new MaintenanceOrder()

             };

            return firstTenantMaintenance;
        }
        public ActionResult Create([Bind(Exclude = "MaintenanceID")]MaintenanceOrder maintenanceorder)
        {
            if (ModelState.IsValid)
            {
                var tenantMaintenance = new TenantMaintenance
                                                    {
                                                        TenantID = UserHelper.UserIdentity.GetTenantId(),
                                                        MaintenanceID = maintenanceorder.MaintenanceID,
                                                        MaintenanceOrder = maintenanceorder
                                                    };
                UnitofWork.MaintenanceOrderRepository.Add(maintenanceorder);
                UnitofWork.TenantMaintenanceRepository.Add(tenantMaintenance);
                UnitofWork.Save();
                TempData["UserName"] = MembershipService.GetUser(UserHelper.UserIdentity.GetUserName());
                TempData["Id"] = maintenanceorder.MaintenanceID;
                TempData["Type"] = "Requests";
                return RedirectToAction("Index", "UploadMaintenancePhoto");
            }

            ViewBag.ServiceTypeID = new SelectList(UnitofWork.ServiceTypeRepository.All, "ServiceTypeID", "ServiceType1", maintenanceorder.ServiceTypeID);
            ViewBag.UrgencyID = new SelectList(UnitofWork.UrgencyTypeRepository.All, "UrgencyTypeID", "UrgencyType1", maintenanceorder.UrgencyID);
            return View(maintenanceorder);
        }