Exemple #1
0
        public RoomType GetById(int id)
        {
            RoomType room = new RoomType();

            try
            {
                room = _roomTypeRepository.GetSingleById(id);
                _unitOfWork.Commit();
            }
            catch (Exception ex)
            {
                string FunctionName = string.Format("DeleteRoomtype('{0}')", id);
                Common.Logs.LogCommon.WriteError(ex.ToString(), FunctionName);
                return(null);
            }
            return(room);
        }