public IActionResult UnitStatus(UnitInOutModel unitInOutModel) { var result = _buildingRepository.ChangeUnitStatus(unitInOutModel); if (result == true) { //return Json(new { result = result }); } return(View()); }