Esempio n. 1
0
        public PmsResponseDto DeleteRoom(int roomId)
        {
            if (roomId <= 0)
            {
                throw new PmsException("Roomid is not valid. Hence Room can not be deleted.");
            }

            var response = new PmsResponseDto();

            if (_iPmsLogic.DeleteRoom(roomId))
            {
                response.ResponseStatus    = PmsApiStatus.Success.ToString();
                response.StatusDescription = "Record deleted successfully.";
            }
            else
            {
                response.ResponseStatus    = PmsApiStatus.Failure.ToString();
                response.StatusDescription = "Operation failed.Please contact administrator.";
            }
            return(response);
        }