Beispiel #1
0
        public IActionResult EditStatus(ComputerRoomEditStatusViewModel computerRoom)
        {
            ComputerRoomBusiness computerRoomBusiness = new ComputerRoomBusiness();
            var result = computerRoomBusiness.EditStatus(computerRoom);

            return(Ok(result));
        }
Beispiel #2
0
        public IActionResult Delete(ComputerRoomDeleteViewModel computerRoom)
        {
            ComputerRoomBusiness computerRoomBusiness = new ComputerRoomBusiness();
            var result = computerRoomBusiness.Delete(computerRoom);

            return(Ok(result));
        }
Beispiel #3
0
        public IActionResult GetById(int Id)
        {
            ComputerRoomBusiness computerRoomBusiness = new ComputerRoomBusiness();
            var result = computerRoomBusiness.GetById(Id);

            return(Ok(result));
        }
Beispiel #4
0
        public IActionResult GetAll()
        {
            ComputerRoomBusiness computerRoomBusiness = new ComputerRoomBusiness();
            var result = computerRoomBusiness.GetAll();

            return(Ok(result));
        }
Beispiel #5
0
        public IActionResult Add(AddComputerRoomViewModel computerRoom)
        {
            ComputerRoomBusiness computerRoomBusiness = new ComputerRoomBusiness();
            var result = computerRoomBusiness.AddComputerRoom(computerRoom);

            return(Ok(result));
        }
Beispiel #6
0
        public IActionResult GetPaging(BaseCondition <ComputerRoom> condition)
        {
            ComputerRoomBusiness computerRoomBusiness = new ComputerRoomBusiness();
            var result = computerRoomBusiness.GetAllComputerRoomSearched(condition);

            return(Ok(result));
        }